We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41dd482 commit 8e72c04Copy full SHA for 8e72c04
examples/raw_google.py
@@ -2,8 +2,12 @@
2
3
with SB(test=True, uc=True) as sb:
4
sb.open("https://google.com/ncr")
5
- sb.type('[title="Search"]', "SeleniumBase GitHub page\n")
6
- sb.sleep(1)
7
- sb.click('[href*="github.com/seleniumbase/"]')
8
- sb.save_screenshot_to_logs() # ./latest_logs/
+ sb.type('[title="Search"]', "SeleniumBase GitHub page")
+ sb.click("div:not([jsname]) > * > input")
9
print(sb.get_page_title())
+ sb.sleep(2) # Wait for the "AI Overview" result
+ if sb.is_text_visible("Generating"):
10
+ sb.wait_for_text("AI Overview")
11
+ sb.save_as_pdf_to_logs() # Saved to ./latest_logs/
12
+ sb.save_page_source_to_logs()
13
+ sb.save_screenshot_to_logs()
0 commit comments