Skip to content

Issue with Scripts Running Slowly and Getting Stuck After Updating SeleniumBase and Pip #2888

Answered by mdmintz
benfrankie asked this question in Q&A
Discussion options

You must be logged in to vote

It's a textarea (not an input) for the Google Search Box. (Or they alternate with an A/B test).
Therefore, your script would sit for 10 seconds, (the default timeout for sb.type()), and then fail.

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

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@benfrankie
Comment options

@mdmintz
Comment options

@benfrankie
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants