Best way to check that element is not present using Selenium WebDriver with java

后端 未结 9 2008
半阙折子戏
半阙折子戏 2020-12-24 02:33

Im trying the code below but it seems it does not work... Can someone show me the best way to do this?

public void verifyThatCommentDeleted(final String text         


        
9条回答
  •  难免孤独
    2020-12-24 02:47

    Instead of doing findElement, do findElements and check the length of the returned elements is 0. This is how I'm doing using WebdriverJS and I expect the same will work in Java

提交回复
热议问题