the browser is hanging when using execute_script #3209
Labels
duplicate
The answer/solution already exists somewhere
invalid usage
You may need to change what you're doing
UC Mode / CDP Mode
Undetected Chromedriver Mode / CDP Mode
I am trying to execute script for scrolling but the browser is stopping after it loads the page the loading is hanging, I am using mac os
`
from seleniumbase import Driver
import time
driver = Driver(uc=True, block_images=True, proxy='')
url = "website.com"
driver.uc_open_with_reconnect(url, 3)
time.sleep(3)
driver.execute_script("window.scrollTo(0, window.pageYOffset + 500);")
time.sleep(3)
print(driver.page_source)
`
The text was updated successfully, but these errors were encountered: