Hi,
I need help on how to get the value of a dynamic element in a website. It is an application number and it changes everytime a successful application is submitted. When I capture the element the attribute @innertext stores the text. I did the normal GetValue action but then on the next application, the value changed and my element no longer able to find the value (as has changed).
Any idea on how to do this? I may have missed some existing solution so please forgive me in advance.
GetValue from a Dynamic Element
-
- Posts: 1
- Joined: Fri Oct 04, 2019 3:37 am
GetValue from a Dynamic Element
- Attachments
-
- Capture.JPG (13.5 KiB) Viewed 237 times
-
- ApplicationNumber.rxsnp
- (101.61 KiB) Downloaded 7 times
Re: GetValue from a Dynamic Element
Hi,
This xpath should return the element you are interested in...
Basically, you must find the element via nearest ancestor. Hope this helps?
This xpath should return the element you are interested in...
Code: Select all
/dom[@domain='eforms.uatonline.immigration.govt.nz']//div[#'confirmation']/p[@innertext~'We received']/strong
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