Hi,
Is there possibility to read InnerText from all children elements with one query xpath
Structure
div [id=A]
- div
- div
- div
General in xpath we can do this with div[#A]//text()
Can we do the same in ranorex? I can't use method text() - in ranorex repository
XPath - How to read text from all child div
Re: XPath - How to read text from all child div
Hi,
I'm afraid, there is no such option in Ranorex xpath. The only way to achieve what you want is with user code. You can use something like this...
https://www.ranorex.com/forum/getvalue- ... tml#p48113
Just replace <Ranorex.Button> with <Ranorex.DivTag> and 'Caption' with 'InnerText' or 'Text'.
I'm afraid, there is no such option in Ranorex xpath. The only way to achieve what you want is with user code. You can use something like this...
https://www.ranorex.com/forum/getvalue- ... tml#p48113
Just replace <Ranorex.Button> with <Ranorex.DivTag> and 'Caption' with 'InnerText' or 'Text'.
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