Scrolling using Selenium-WebDriver?

I understand that you would like to control the scroll using Selenium WebDriver. There is a similar issue discussed/solved here which I hope is useful.

Up vote 1 down vote favorite share g+ share fb share tw.

I am using Selenium-WebDriver to automate my browser tests. My browser header is floating and is always present irrespective of the browser scroll. So when I click on certain elements that are present below the current visible region of the browser, selenium tries to scroll the element into view and click them.

But because of the auto scrolling as such the elements are scrolled behind the floating header and when any action is performed on them , the elements in the page header get clicked. . Is there any way to limit the default scroll of the WebDriver?

Selenium webdriver selenium2 link|improve this question edited Feb 26 at 13:14user131634315 asked Feb 25 at 10:07Rogers Jefrey L235 25% accept rate.

I understand that you would like to control the scroll using Selenium WebDriver. There is a similar issue discussed/solved here, which I hope is useful.

Thanks , I wrote a javascript to suite my needs – Rogers Jefrey L Mar 11 at 3:20.

Locatable hoverItem = (Locatable) driver. FindElement(By. Xpath("//litext()='Reklama w Google'")); int y = hoverItem.getCoordinates().

GetLocationOnScreen().getY(); ((JavascriptExecutor)driver). ExecuteScript("window. ScrollBy(0,"+y+");").

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions