Hi,
We are a licensed user of Ranorex and use it to test our web applications. I would like to capture the order number after an order has been placed.
Once an ordered has been placed we get a message like this
your confirmation # is 12345.
I need Ranorex to capture the text "12345". How can this be done? Please let me know...
Thanks
Need to capture a text on the html page
Re: Need to capture a text on the html page
Did you use RanorexSpy to get the proper xPath of the text item in the AUT?
Once you get that path you can put that into your code and grab the text.
Once you get that path you can put that into your code and grab the text.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
-
- Posts: 11
- Joined: Mon Apr 11, 2011 9:34 pm
Re: Need to capture a text on the html page
Hi,
Do we need to use RanorexSpy during recording or after that to capture the text? Can you provide the logic / code to capture that text. Please provide an example if possible...
Thanks
Do we need to use RanorexSpy during recording or after that to capture the text? Can you provide the logic / code to capture that text. Please provide an example if possible...
Thanks
Re: Need to capture a text on the html page
Well the most basic example would be something like this...
If you want more, please show that you are at least trying to figure this out for yourself by reading the documentation or the copious amounts of other forum posts that ask the same question.
Code: Select all
MyText = MyForm.FindSingle(".//text[@text='myTextBox]", 60000);
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...