dimanche 7 mai 2017

Check that a a pop is closed with Selenium (Java)

I'm writing some tests in java for a webpage with selenium. I see a lot of methods to ensure that an element is present on the page. But my need is to check that an element is not present on the page. More precisely, I need to check that the user has closed the pop up.

For the moment I see only methods to check that an element is present on thepage and not the contrary, like

WebElement element = driver.findElement(By.name("q"));

Do you know if methods exists to to check that an element is not present on the page ?

Thanks

Aucun commentaire:

Enregistrer un commentaire