Skip to content

Scroll Element into View #605

@MithuraJ

Description

@MithuraJ

Error scrolling into view. Using Selenium2Library for robot framework.

1 Click Element ${Button}
2 Wait until Page Contains Element id=title 30
3 Click Element id=room
4 Wait until Page Contains Element ${Kitchen} 30
5 Wait until Page Contains Kitchen 30
6 Current Frame Contains ${Kitchen}
7 Click Element ${Kitchen}

4 and 5 pass, the element and text is found but it fails on step 6 and 7 because the element is not in the frame. The exact error is ElementNotVisibleException: Message: element not visible.

If however I add a sleep before 6 and 7, then it finds the element, scrolls it into view and it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions