Skip to content

Commit e414b64

Browse files
committed
Update the ReadMe
1 parent 26917a2 commit e414b64

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/cdn/img/sb_logo_10t.png" alt="SeleniumBase" title="SeleniumBase" width="320" /></a></p>
1414

15-
<p align="center" class="hero__title"><b>All-in-one Browser Automation Framework:<br />Web Crawling / Scraping / Testing / Stealth</b></p>
15+
<h3 align="center" class="hero__title"><b>Automation / Stealth / Scraping / Testing</b></h3>
1616

1717
<p align="center"><a href="https://pepy.tech/projects/seleniumbase?timeRange=threeMonths&category=version&includeCIDownloads=true&granularity=daily&viewType=line&versions=*" target="_blank"><img src="https://static.pepy.tech/badge/seleniumbase" alt="SeleniumBase PyPI downloads" /></a> <a href="https://pypi.python.org/pypi/seleniumbase" target="_blank"><img src="https://img.shields.io/pypi/v/seleniumbase.svg?color=3399EE" alt="PyPI version" /></a> <a href="https://github.com/seleniumbase/SeleniumBase/actions" target="_blank"><img src="https://github.com/seleniumbase/SeleniumBase/workflows/CI%20build/badge.svg" alt="SeleniumBase GitHub Actions" /></a> <a href="https://seleniumbase.io"><img src="https://img.shields.io/badge/docs-seleniumbase.io-11BBAA.svg" alt="SeleniumBase Docs" /></a> <a href="https://discord.gg/EdhQTn3EyE" target="_blank"><img src="https://img.shields.io/discord/727927627830001734?color=7289DA&label=Discord&logo=discord&logoColor=white"/></a></p>
1818
<p align="center"></p>
@@ -53,11 +53,13 @@
5353
<br />
5454
</p>
5555

56-
📊 <a href="https://github.com/seleniumbase/SeleniumBase/"><b translate="no">SeleniumBase</b></a> is a complete framework for browser automation, testing, and web-scraping with Python. Includes multiple advanced modes and tools.
56+
📊 <a href="https://github.com/seleniumbase/SeleniumBase/"><b translate="no">SeleniumBase</b></a> is a complete framework for browser automation, testing, and web-scraping with Python.
5757

5858
🐙 Stealth modes: <a translate="no" href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/uc_mode.md">UC Mode</a> and <a translate="no" href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md"><b>CDP Mode</b></a> can bypass bot-detection, solve CAPTCHAs, and call methods from the <a href="https://chromedevtools.github.io/devtools-protocol/" translate="no">Chrome Devtools Protocol</a>. Includes <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/playwright/ReadMe.md"><b><span translate="no">Stealthy Playwright Mode</span></b></a>, which makes Playwright stealthy via CDP Mode.
5959

60-
ℹ️ Some <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md">Syntax Formats</a> use <a href="https://docs.pytest.org/en/latest/how-to/usage.html" translate="no"><b>pytest</b></a> (a Python unit-testing framework included with SeleniumBase that can discover, collect, and run tests automatically).
60+
🔧 Includes advanced tools, such as a <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/recorder_mode.md">Recorder</a> for generating tests, a <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/commander.md">GUI</a> for running tests, and a <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md">Dashboard</a> for displaying results.
61+
62+
ℹ️ Some <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md">Syntax Formats</a> use <a href="https://docs.pytest.org/en/latest/how-to/usage.html" translate="no">pytest</a> (a Python unit-testing framework included with SeleniumBase that can discover, collect, and run tests automatically).
6163

6264
📚 Example scripts & tests are located in [**SeleniumBase/examples/**](https://github.com/seleniumbase/SeleniumBase/tree/master/examples).
6365

@@ -73,21 +75,19 @@ from seleniumbase import SB
7375
with SB(uc=True, test=True) as sb:
7476
url = "https://google.com/ncr"
7577
sb.activate_cdp_mode(url)
76-
sb.type('[title="Search"]', "SeleniumBase GitHub page")
77-
sb.click("div:not([jsname]) > * > input")
78-
sb.sleep(2)
78+
sb.type('[name="q"]', "SeleniumBase GitHub page")
79+
sb.click('[value="Google Search"]')
80+
sb.sleep(4) # The "AI Overview" sometimes loads
7981
print(sb.get_page_title())
80-
sb.sleep(1) # Wait for the "AI Overview" result
81-
if sb.is_text_visible("Generating"):
82-
sb.wait_for_text("AI Overview")
83-
sb.save_as_pdf_to_logs() # Saved to ./latest_logs/
82+
sb.save_as_pdf_to_logs()
8483
sb.save_page_source_to_logs()
8584
sb.save_screenshot_to_logs()
85+
print("Logs have been saved to: ./latest_logs/")
8686
```
8787

8888
> `python raw_google.py`
8989
90-
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py"><img src="https://seleniumbase.github.io/cdn/img/google_sb_result.png" alt="SeleniumBase on Google" title="SeleniumBase on Google" width="538" /></a>
90+
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py"><img src="https://seleniumbase.github.io/cdn/img/google_sb_result.jpg" alt="SeleniumBase on Google" title="SeleniumBase on Google" width="580" /></a>
9191

9292
--------
9393

@@ -109,7 +109,7 @@ with SB(uc=True, test=True, locale="en") as sb:
109109
sb.post_message("SeleniumBase wasn't detected", duration=4)
110110
```
111111

112-
<img src="https://seleniumbase.github.io/other/cf_sec.jpg" title="SeleniumBase" width="332"> <img src="https://seleniumbase.github.io/other/gitlab_bypass.png" title="SeleniumBase" width="288">
112+
<img src="https://seleniumbase.github.io/other/cf_sec.jpg" title="SeleniumBase" width="344"> <img src="https://seleniumbase.github.io/other/gitlab_bypass.png" title="SeleniumBase" width="298">
113113

114114
<p align="left">📙 There's also SeleniumBase's "Pure CDP Mode", which doesn't use WebDriver or Selenium at all: <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_cdp_gitlab.py">SeleniumBase/examples/cdp_mode/raw_cdp_gitlab.py</a></p>
115115

0 commit comments

Comments
 (0)