Using selenium
and webdriverJS
I want to create a test to check if an element is not displayed on the page. To check if one or more elements are present, I decided to use the isDisplayed()
function:
driver.findElement(webdriver.By.css('.element')).isDisplayed();
- Do you know a similar function that returns
true
if the elements if the element is NOT displayed? isDisplayed()
works well when used on a singleelement
. Is there a similar way to check if multiple elements are displayed?
Thanks in advance for your answers!