Skip to content

Commit b8686dc

Browse files
committed
Update the documentation
1 parent 8274d73 commit b8686dc

3 files changed

Lines changed: 12 additions & 14 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,10 @@ pip install -e .
507507
<summary> ▶️ Here's sample output from a chromedriver download. (<b>click to expand</b>)</summary>
508508
509509
```zsh
510-
*** chromedriver to download = 148.0.7778.178 (Latest Stable)
510+
*** chromedriver to download = 149.0.7827.54 (Latest Stable)
511511
512512
Downloading chromedriver-mac-arm64.zip from:
513-
https://storage.googleapis.com/chrome-for-testing-public/148.0.7778.178/mac-arm64/chromedriver-mac-arm64.zip ...
513+
https://storage.googleapis.com/chrome-for-testing-public/149.0.7827.54/mac-arm64/chromedriver-mac-arm64.zip ...
514514
Download Complete!
515515
516516
Extracting ['chromedriver'] from chromedriver-mac-arm64.zip ...
@@ -520,8 +520,8 @@ The file [chromedriver] was saved to:
520520
~/github/SeleniumBase/seleniumbase/drivers/
521521
chromedriver
522522
523-
Making [chromedriver 148.0.7778.178] executable ...
524-
[chromedriver 148.0.7778.178] is now ready for use!
523+
Making [chromedriver 149.0.7827.54] executable ...
524+
[chromedriver 149.0.7827.54] is now ready for use!
525525
```
526526
527527
</details>

examples/ReadMe.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44

55
<p align="left"><a align="center" href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py"><img align="center" src="https://seleniumbase.github.io/cdn/img/sb_demo_page.png" alt="SeleniumBase Demo Page" width="420" /></a></p>
66

7-
* <b>SeleniumBase</b> "tests" are run with <b>pytest</b>.
7+
* Many <b>SeleniumBase</b> "tests" run with <b><code>pytest</code></b>.
88
* Chrome is the default browser if not specified.
9-
* Tests are structured using [25 unique syntax formats](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md).
9+
* Tests are structured using [25 unique design patterns](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md).
1010
* Logs from test failures are saved to `./latest_logs/`.
1111
* Tests can be run with [multiple command-line options](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md).
1212
* Examples can be found in [SeleniumBase/examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples).
13-
* For stealthy examples, see [SeleniumBase/examples/cdp_mode/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/cdp_mode).
13+
* Stealthy CDP Mode examples: [SeleniumBase/examples/cdp_mode/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/cdp_mode).
14+
* Stealthy Playwright examples: [./examples/cdp_mode/playwright/](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/playwright/ReadMe.md).
1415

1516
(NOTE: Some example tests fail on purpose to demonstrate [logging features](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md).)
1617

1718
--------
1819

19-
<h3><img src="https://seleniumbase.github.io/img/logo7.png" title="SeleniumBase" width="32" /> Example tests with run commands to help you get started:</h3>
20-
21-
--------
20+
<h3><img src="https://seleniumbase.github.io/img/logo7.png" title="SeleniumBase" width="32" /> Example tests with run commands:</h3>
2221

2322
Run an [example test](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py): (Default option: `--chrome`)
2423

examples/cdp_mode/ReadMe.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ with SB(uc=True, test=True, ad_block=True) as sb:
323323
price_text = price_text.split("current price ")[-1]
324324
price_text = price_text.split(" ")[0]
325325
print(" (" + price_text + ")")
326+
item.scroll_into_view()
326327
```
327328

328329
</details>
@@ -662,8 +663,7 @@ await tab.set_window_size(left=0, top=0, width=1280, height=1024)
662663
await tab.set_window_rect(left=0, top=0, width=1280, height=1024)
663664
await tab.activate()
664665
await tab.bring_to_front()
665-
await tab.set_window_state(
666-
left=0, top=0, width=1280, height=720, state="normal")
666+
await tab.set_window_state(left=0, top=0, width=1280, height=720, state="normal")
667667
await tab.get_navigation_history()
668668
await tab.get_user_agent()
669669
await tab.get_cookie_string()
@@ -677,8 +677,7 @@ await tab.wait_for(selector="", text="", timeout=10)
677677
await tab.set_attributes(selector, attribute, value)
678678
await tab.internalize_links()
679679
await tab.download_file(url, filename=None)
680-
await tab.save_screenshot(
681-
filename="auto", format="png", full_page=False)
680+
await tab.save_screenshot(filename="auto", format="png", full_page=False)
682681
await tab.print_to_pdf(filename="auto")
683682
await tab.set_download_path(path)
684683
await tab.get_all_linked_sources()

0 commit comments

Comments
 (0)