MarcusBengtsson
2 years agoFrequent Contributor
How to do when ID always changes
Hello! I have this checkbox that seems to be changing id every time I re-run the test (on web)
it looks like this
//div[@id='gridIKgbvJEL']//tr/td/i[contains(@class, 'c-grid-checkbox')]")
last time it was like this
//div[@id='gridbezutZNT']//tr/td/i[contains(@class, 'c-grid-checkbox')]
so I was trying out if it was possible to do some sort of wild card for it as it seems to only be changing the "grid...." portion and it would look like this
//div[@id='grid*']//tr/td/i[contains(@class, 'c-grid-checkbox')]
but I assume it couldnt be as easy as this no? Do you guys have any suggestions.