Help with an input field for XPath

Discussion of the technology underlying the eValid solution.

Help with an input field for XPath

Postby LeslieT » Mon Nov 22, 2021 10:21 am

Hi.

I need help in creating XPath for the input type field shown.

In this field all the ids are changing dynamically and there is nothing unique in this field.

Can you assist me with this issue?

Thanks in Advance.
LeslieT
 
Posts: 1
Joined: Mon Nov 22, 2021 10:15 am

Re: Help with an input field for XPath

Postby eValid » Tue Nov 23, 2021 8:15 am

LeslieT wrote:Hi.

I need help in creating XPath for the input type field shown.

In this field all the ids are changing dynamically and there is nothing unique in this field.

Can you assist me with this issue?

Thanks in Advance.


Thanks for posting your question LeslieT.

This is an uncommon problem, but there are ways around it.

The XPath (WebDriver terminology) that you're looking for is accomplished with this key command in eValid:

http://e-valid.com/Products/Documentati ... ement.html

The "trick" to use is to remember that even when the IDs in a page are changing dynamically, and even when there is nothing unique to search for in that particular ID, in almost every case there will be something unique "nearby" in the DOM structure.

Up or down an index position or two.

So, find something there and use these commands to set SourceIndex to the desired value: IndexMove number where number cand be positive or negative, whichever you need.


-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Technology

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons