org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

前端 未结 7 1638
终归单人心
终归单人心 2020-12-30 13:33

I am trying to execute below Selenium Web driver script, But I am getting org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may n

相关标签:
7条回答
  • 2020-12-30 14:22

    I had a similar issue and the reason was, there were more hidden elements along with the actual element that i tried to find. So click was actually trying to interact with hidden element and throwed the exception.

    Solution- I fine-tuned the element's xpath to make it unique which resulted the interaction to the actual element.

    0 讨论(0)
提交回复
热议问题