Doesn't scroll to element on interaction

Confirmed Issue #5207690 • Assigned to Stanley H.

Details

Created
Oct 27, 2015
Privacy
This issue is public.
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

https://github.com/watir/watirspec/blob/master/button_spec.rb#L273

Expected Results:

Click command should first scroll element into view per: https://w3c.github.io/webdriver/webdriver-spec.html#element-click

Actual Results:

Dev Channel specific:

Yes

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Kamen M.”

      Changed Assigned To to “Christian F.”

      Changed Assigned To from “Christian F.” to “Mara P.”

      Changed Assigned To from “Mara P.” to “Ben B.”

      Changed Status to “Confirmed”

      Changed Title from “Edge Driver - Doesn't scroll to element on interaction” to “Doesn't scroll to element on interaction”

    • Have seen this as well with certain elements of our UI. For example, we have a large table where the first td element of each row has a checkbox in it. If I try to get the driver to click a checkbox that is not currently in view, it throws an exception because I am waiting on visibility of the element before I click it. Chrome and IE11 find these “not visible” elements just fine and then scroll them into view before clicking them.

    • Microsoft Edge Team

      Changed Assigned To from “Ben B.” to “Stanley H.”

    • What is the status of this issue? It is causing 10-15 failures every run in our test suite that work in every other browser except Edge due to this specific issue.

    • What is the status of this issue? Is there a known release date for a fixed version of WebDriver? This issue is highly annoying for our test suite.

    • Unfortunately there are no updates on the status of this bug, however we can confirm that it is reproducible. We’re working on prioritizing it for fixing once there are enough resources to do so. If possible, and I understand it is not always possible - we would suggest working around this problem until it is fixed by using ExecuteScript and scrolling the element into view before attempting interaction.

    • @Zach I have the same issue and used the workaround Stanley mentioned. It’s a workaround that does not break the other tests for me, so might be worth the time if it’s to annoying.

    • I encounter the same issue with Edge 15.15063
      Watir users you could use the watir-scroll gem.
      OR use the javascript way to scroll browser.execute_script('arguments[0].scrollIntoView();', button)
      Both seem to do the workaround trick for me.

    You need to sign in to your Microsoft account to add a comment.

    Sign in