How I can avoid “Element is not currently visible and so may not be interacted with ” Selenium Webdriver

前端 未结 11 1152
死守一世寂寞
死守一世寂寞 2020-12-16 14:02

Am using selenium webdriver 2.210 + JAVA for testing.I have a sample code for selecting all mails in gmail.But the code throws an \"Element is not currently visible and so m

11条回答
  •  情深已故
    2020-12-16 14:53

    Alternatively, you can use the JavascriptExecutor class provided in Selenium. After you do that, you can execute any JavaScript to manipulate the DOM on a Web page.

    Ref:: http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/JavascriptExecutor.html

提交回复
热议问题