Issue with Scripts Running Slowly and Getting Stuck After Updating SeleniumBase and Pip #2888
-
Hi, I'm encountering issues with my SeleniumBase scripts after updating to the latest version (4.28.2) and upgrading pip. The scripts are running very slowly, often failing to initialize the driver, and sometimes getting stuck without even opening the browser. Here's what I've done so far: Created a new virtual environment. `from seleniumbase import SB with SB(uc=True) as sb: Even with this basic script, the execution either hangs or runs extremely slowly. Additionally, I've encountered issues with deleting some folders in my environment, specifically _tests, which seems to be causing some problems. Could this be related to the recent updates? Is there a known issue, or do you have any suggestions for resolving these performance problems? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It's a Here's the correct script: from seleniumbase import SB
with SB(uc=True) as sb:
sb.open("https://www.google.com")
sb.type('[name="q"]', "SeleniumBase")
sb.click('input[type="submit"]')
sb.assert_text("SeleniumBase", "h3") |
Beta Was this translation helpful? Give feedback.
It's a
textarea
(not aninput
) for the Google Search Box. (Or they alternate with an A/B test).Therefore, your script would sit for 10 seconds, (the default
timeout
forsb.type()
), and then fail.Here's the correct script: