Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the browser is hanging when using execute_script #3209

Closed
samiklah opened this issue Oct 21, 2024 · 1 comment
Closed

the browser is hanging when using execute_script #3209

samiklah opened this issue Oct 21, 2024 · 1 comment
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

Comments

@samiklah
Copy link

samiklah commented Oct 21, 2024

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 mdmintz added duplicate The answer/solution already exists somewhere UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode invalid usage You may need to change what you're doing labels Oct 21, 2024
@mdmintz
Copy link
Member

mdmintz commented Oct 21, 2024

It's either:

@mdmintz mdmintz closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants