How to get the element name who pattern is changing | Selenium Forum
M
Posted on 16/06/2016
Hi All,

I have something like this

//div[24]/ul/li[2]/div/div


//div[30]/ul/li[2]/div/div


for the select box.. who div[xx] keep changing dynamically... Whats the best match to find the element for this ?


Thanks

Regards
J

M
Replied on 16/06/2016

you have to look at another attributes. like class name, placeholder etc.