SeleniumHQ/seleniumhq.github.io

[๐Ÿ› Bug]: No scroll_from_origin attribute from ActionChains class

rena9155 opened this issue ยท 2 comments

What happened?

I was trying to use Selenium to scroll part of a webpage by following an example provided here: https://www.selenium.dev/documentation/webdriver/actions_api/wheel/

Here's the code:
element = driver.find_element(By.ID,"xxx") scroll_origin = ScrollOrigin.from_element(element) ActionChains(driver).scroll_from_origin(scroll_origin, 0, 200).perform()
And then I got an AttributeError: 'ActionChains' object has no attribute 'scroll_from_origin'

What browsers and operating systems are you seeing the problem on?

Chrome, Mac

@rena9155, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

diemol commented

This is the repository for the documentation. Also the code shown is passing on a daily basis in our CI.

Please create this issue at https://github.com/SeleniumHQ/selenium