Steps to reproduce
The moveto command always scrolls the center point in view. Try replacing the 1400,1400 with 0,0 in the repro sample and it will also scroll the center.
In Chrome, it seems to ignore the offset and always move to 0,0.
Driver.Manage().Window.Size = new Size(500, 500);
Driver.ExecuteScript(“document.body.insertAdjacentHTML('beforeend’, '<div style="background-color:red; width: 1500; height: 1500” > Foobar </div>’)");
Actions action = new Actions(Driver);
action.MoveToElement(Driver.FindElementByTagName(“div”), 1400, 1400);
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Navin A.”
Changed Status to “Confirmed”
Changed Steps to Reproduce
Changed Title from “moveto always goes to the element center instead of the specified offset” to “moveto always scrolls the center of element into view instead of the specified offset”
Changed Assigned To from “Navin A.” to “Ben B.”
Changed Status from “Confirmed” to “Fixed”
Changed Status from “Fixed” to “Fixed, not yet flighted”
Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 14393 and is available in our latest public stable build.
The MS Edge Team