Inserting data in a dynamic ID textbox

Hey Guys!

I promise I tried to find an answer on the search, but was unable to.
I need to insert data in a field that changes ID every time the page loads.
The last description I got from this was:

I noticed “class” remain stable through the iterations. Is there a way to use that to point where to Type?

I also looked about using the XPATH, but I didn’t really understand how to use it. Anyway, Chrome said the full XPATH is /html/body/table/tbody/tr/td/div/table/tbody/tr/td/div/table/tbody/tr[2]/td/table/tbody/tr[3]/td/div[1]/div/table/tbody/tr/td/span/span/table/tbody/tr/td/span/span[2]/table/tbody/tr/td/div/table/tbody/tr/td/div/table/tbody/tr[1]/td/div/div/div[2]/span/span/table/tbody/tr/td/div/table/tbody/tr[1]/td[3]/span/input

But I couldn’t make UI.Vision write on it…

Have you seen this post? How to get the Selenium IDE commands to work with dynamic ID's

Other hint: Re-record the locator with the new V5.7.3 (currently available on Firefox). It adds now more selector choices during recording and tries them all on replay. Maybe you find a good stable one automatically now.

1 Like

Hey @ulrich !
Thanks for the help! I eventually was able to use the XPath correctly. I had to select the frame it was located before pointing to it.
The solution, if anyone needs it, was:

selectFrame id=Frameintended
click xpath=//html/body/…

Thanks for the help!

1 Like