Can we use Selenium RC to move the browser's scroll bar up or down?
Tell me more
×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for
software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.
|
|
I assume you are referring to a scroll bar for the entire browser, as opposed to a scroll bar for a piece of the page (e.g. a list) in the browser. I do not believe there is a Selenium API for moving the browser's scroll bar up or down. However, you can use the RemoteWebdriver.executeScript method to run some JavaScript that will scroll the entire browser. In JavaScript, you can use the ScrollBy and ScrollTo methods on the DOM Window object. |
|||
|
|