//div[#'FI_Cv_Exploratory_Inbound_SP,none:Carrier IATA Code:nkGlobalMap_941751663_(All)']/?/?/a[@innertext='(All)']
i need to use regular expression for this 941751663 will keep changing.. how to use regular exp for about path
Thanks
Regular expression
Re: Regular expression
Hi,
I'm afraid, it's not possible to use regular expressions (or variables) within unique IDs (ID starting with # sign). To be able to use reg. expressions (and/or variables) in your path, you will have to use another attribute (e.g. ID). So the path should look like this (use whatever/better regex you want):
I'm afraid, it's not possible to use regular expressions (or variables) within unique IDs (ID starting with # sign). To be able to use reg. expressions (and/or variables) in your path, you will have to use another attribute (e.g. ID). So the path should look like this (use whatever/better regex you want):
Code: Select all
//div[@id~'(FI_Cv_Exploratory_Inbound_SP,none:Carrier IATA Code:nkGlobalMap_)(\d*)(_\(All\))']/?/?/a[@innertext='(All)']
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration