Hey guys! I'm new to Ranorex and I'm looking forward to do the following:
I'm creating a module that uses the "validate" action, and need to validate that the value shown on a table is matches to a given text string; the value shown in the table is contained in a span -and it's contained on the "innertext" property
How can I get Ranorex to get that InnerText?
Thanks in advance!
Getting InnerText from a Span
Re: Getting InnerText from a Span
While recording:
When you click validate and then click on an item, Ranorex spy will open and will highlight the selected element in the tree. Once you are sure this is the correct element press next. On the next screen you can choose what you are validating; you can see I have inner text selected:
And here is what the generated step looks like in the action table of the recording:
When you click validate and then click on an item, Ranorex spy will open and will highlight the selected element in the tree. Once you are sure this is the correct element press next. On the next screen you can choose what you are validating; you can see I have inner text selected:
And here is what the generated step looks like in the action table of the recording:
You do not have the required permissions to view the files attached to this post.
Re: Getting InnerText from a Span
Hi,
Please post a Ranorex snapshot (not screenshot!) and the xpath to span element you are using.
Please post a Ranorex snapshot (not screenshot!) and the xpath to span element you are using.
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: Getting InnerText from a Span
Thanks for your replies, guys!
Vega, your answer helped me a lot! It's working now
Vega, your answer helped me a lot! It's working now
