Skip to content

Support 'force' as an option on locator.scrollIntoViewIfNeeded #12580

@jaywhar

Description

@jaywhar

Currently there's no way of ignoring the actionability checks when calling scrollIntoViewIfNeeded on a locator.

I'm working on a learning site where we require the user to answer questions by clicking buttons that are permanently animated (bouncing) to make them more visually apparent. Additionally, sometimes the answer button is outside the viewport and so the user has to scroll around the page to find them.

Since the button is always animating, we have to force a click - but this skips the actionability checks and so for the answers where the button is outside the viewport the action fails.

If we had the ability to scroll the button into view even though it is always animating then we could separate the scrolling and the forced click

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