Dynamic Id not working in Selenium IDE

60 views
Skip to first unread message

sk

unread,
Mar 24, 2017, 4:39:15 PM3/24/17
to Selenium Users
Hi, 
I am trying to access a menu option that says 'Click Here' and the ID of the menu option changes at every execution.

This is the ID : 3RT7ABCgn3Raz02_xy05

The first portion changes at every run, and _xy05 remains constant at every run.

This is what I have used and it doesn't seem to work:

command:click
target: //tr[contains(@id,'_xy05)]
value: Click Here

I get the error [error] Element //tr[contains(@id,'_xy05')] not found

Please help fix this.

Fails at this step.

 [error] Element //tr[contains(@id,'_xy05')] not found


sandeep kota

unread,
Mar 31, 2017, 3:53:41 AM3/31/17
to seleniu...@googlegroups.com
try some other way of identifying the element using css or xpath.. it will be helpful to have the html code

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8dc12c33-3a33-418e-9c27-fbd42eba248d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,
Sandeep
Reply all
Reply to author
Forward
0 new messages