TestProject Forum
Powered by leading experts in the test automation community

Multiple Matches

HY!

I have a simple but interesting problem with test creating in chrome browser. Sometimes i have an unique id, and I create a selector but i get an issue like: Inkedmultiple matches_LI (2)

Thanks for help,

Hello @pasztor.mate,
if you have multiple matches you can add the index that you need, for example
(//*[@id=‘some-id’])[1]
and just replace the 1, with the index that you need

1 Like