def scroll(
self,
delta_x: int = 0,
delta_y: int = 0,
timeout: int = 30
) -> None
Scroll the target element with the scroll bar.
Parameters:
delta_x: int
Pixels to scroll horizontally.
delta_y: int
Pixels to scroll vertically.
timeout: int
Timeout for the operation, the unit is second, and the default value is 30 seconds.
Returns:
None
Example:
from clicknium import clicknium as cc
# open chrome browser
chrome_tab = cc.chrome.open("https://www.clicknium.com")
# scroll the element
web_element = chrome_tab.find_element(locator.chrome.clicknium.products_panel)
web_element.scroll(0, 500)