//container[@controlname='platformNavigator1']/?/?/container[@controlname='cameraSelector1']/?/?/container[@controlname='toggleContainer']/radiobutton[@text='^Coarse']
Trying ^Coarse because the value changes from Coarse0 to Coarse1 depending on the state of the system. I don't care if 0 or 1, I just want Coarse (vs Fine). So I am trying to locate an item the STARTS with "Coarse" and thought the ^ was the way to do that. Seems I was wrong. Any other ideas? Thanks.
Repo item wildcard?
Re: Repo item wildcard?
Hi,
Basically, you want to use regular expression in the xpath. For this you must change ‘=‘ to ‘~’, so the xpath should look like this…
Hope this helps?
Basically, you want to use regular expression in the xpath. For this you must change ‘=‘ to ‘~’, so the xpath should look like this…
Code: Select all
radiobutton[@text~'^Coarse']
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
-
- Posts: 169
- Joined: Fri Nov 08, 2019 3:23 pm
Re: Repo item wildcard?
Ha, I was close.
Perfect, thanks a lot.
Perfect, thanks a lot.