Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix testShouldNotScrollIfAlreadyScrolledAndElementIsInView #7603

Closed
wants to merge 1 commit into from

Conversation

JohnChen0
Copy link
Contributor

testShouldNotScrollIfAlreadyScrolledAndElementIsInView does not work
correctly. While clikcing button1, a spec-compliant implementation
should scroll the page just enough to bring button1 into view, while
button2 remains out of view, thus clicking button2 whould cause
scroll again. Reversing the order of the clicks to fix this.

testShouldNotScrollIfAlreadyScrolledAndElementIsInView does not work
correctly. While clikcing button1, a spec-compliant implementation
should scroll the page just enough to bring button1 into view, while
button2 remains out of view, thus clicking button2 should cause
scroll again. Reversing the order of the clicks to fix this.
@barancev
Copy link
Member

This change is not compatible with IE driver, it scrolls to the top by default. It is not compatible with legacy FirefoxDriver too, but it's insufficient already.

@jimevans What do you think about this change? Should we just ignore this test in IE? Or keep the old version of this test for IE? Or change IE driver to match the others?

@barancev
Copy link
Member

I've merged this PR as 72751e8 but we need a followup.

@barancev barancev closed this Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants