Hi,
Does Ranorex support translate or matches function in XPATH?
First thought, it seems not. But I prefer to-do a double check.
Documentation of both functions can be found on the official w3 xpath function page. (Can't post urls)
Thanks in advance!
XPATH support
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: XPATH support
Hi radimag,
While RanoreXPath is based on XPath, it doesn't support all the features and expressions XPath supports at this time (including the translate and matches functions). If are you able to provide more detail to what you are trying to do, I will be happy to look into another method to achieve this.
Cheers,
Ned
While RanoreXPath is based on XPath, it doesn't support all the features and expressions XPath supports at this time (including the translate and matches functions). If are you able to provide more detail to what you are trying to do, I will be happy to look into another method to achieve this.
Cheers,
Ned
Re: XPATH support
Thanks for the answer.
I'm trying to ignore case-sensitive in a xpath.
Example:
Find div tag with attribute name that contains the value 'example' without case-sensitivity
I'm trying to ignore case-sensitive in a xpath.
Example:
Find div tag with attribute name that contains the value 'example' without case-sensitivity
Code: Select all
<div name="This is an ExAmPle name">test</div>
.//div[@name~'example']
Re: XPATH support
Hi,
You can use regular expression, to ignore character case, like this:
Hope this helps?
You can use regular expression, to ignore character case, like this:
Code: Select all
.//div[@name~'(?i:example)']
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
Re: XPATH support
Thanks odklizec, this solved the problem.
Re: XPATH support
Hi,
I'm glad to hear that
I'm glad to hear that
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