-
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Feb 26, 2026
Replies: 1 comment 2 replies
-
|
This script worked fine for me: from seleniumbase import SB
with SB(uc=True, test=True, mobile=True) as sb:
url = "https://google.com/ncr"
sb.activate_cdp_mode(url)
sb.type('[title="Search"]', "SeleniumBase GitHub page")
sb.click("div:not([jsname]) > * > input")
sb.sleep(2)
print(sb.get_page_title())
sb.sleep(1) # Wait for the "AI Overview" result
if sb.is_text_visible("Generating"):
sb.wait_for_text("AI Overview")
sb.save_as_pdf_to_logs() # Saved to ./latest_logs/
sb.save_page_source_to_logs()
sb.save_screenshot_to_logs() |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

This script worked fine for me: