Skip to content

actions.moveToElement in Selenium does not scroll #776

@rscwcd

Description

@rscwcd

Hi,

After upgrading our project to use gecko driver(Version "geckodriver-v0.16.0-win64") and FF 53.0, found that a feature to scroll down the page is not working. Tried many different techniques but didn't find any way to scroll the page to go through required element. We are using below code to go through this:

public T scroll_to_element(By element) {
WebElement webElement = findElement(element);
Actions actions = new Actions(driver);
actions.moveToElement(webElement).perform();
return me();
}

Please advise.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions