I need to check if some element exists on the page or not.
I already saw this WebDriver: check if an element exists? issue but I'm wondering why not simply apply findElements().isEmpty
method?
I thought it would do the same work.
UPD Now I see findElements().isEmpty
works perfect so I'm just wondering why to look for other, much complex ways, while there is a straightforward method for that?