How to scroll a specific DIV using Selenium WebDriver with Java?

前端 未结 10 1037
后悔当初
后悔当初 2020-12-02 18:41

Some of WebElements are not recognized by WebDriver, WebDriver fails to find the element which is not visible in browser\'s visible area.

In order to make the WebEle

10条回答
  •  春和景丽
    2020-12-02 19:12

    My 'WORKAROUND' is to scroll to the position by element's x and y co-ordinates. I also added an offset to y so that any header/footer or other element don't block the visibility of the element that I want to scroll to.

    I have my answer posted under this question -

    Selenium webdriver can't click on a link outside the page

提交回复
热议问题