java – Using findElement() instead of findElments() on more than one element-ThrowExceptions

Exception or error:

What happens if you use findElement() method by an identifier which is common for a more than one element on the page, instead of using findElements()?
I think what will happen is the first element in the HTML order will get returned.
Thanks for the helpers 🙂

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *