Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99411

WebDriver in javascript: how to check if an element exists?

$
0
0

How can I check if an element exists in selenium?

I have tried:

browser.driver.findElements(by.id('my-id'))

but it does not seem to work.


Viewing all articles
Browse latest Browse all 99411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>