seleniumbase / SeleniumBase

📊 Blazing fast Python framework for web crawling, scraping, testing, and reporting. Supports pytest. Stealth abilities: UC Mode and CDP Mode.
https://seleniumbase.io
MIT License
5.43k stars 982 forks source link

the browser is hanging when using execute_script #3209

Closed samiklah closed 1 month ago

samiklah commented 1 month ago

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) `

mdmintz commented 1 month ago

It's either: