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

前端 未结 11 1145
死守一世寂寞
死守一世寂寞 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:39

    Try to downgrade selenium webdriver to 2.20.0.

    I got similar error with ruby gem version 2.21.0 and 2.21.2.

    In my case web driver always return button.visible? = false in case of button is added to the page via .Ajax call.

    My tests work previously for a longer time and nothing related has changed. So I assume this is a bug in the current version of webdriver.

提交回复
热议问题