Skip to content

Commit 31da047

Browse files
committed
Update the ReadMe
1 parent 30adf62 commit 31da047

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
--------
7272

73-
Here's a [Pure CDP Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md#-pure-cdp-mode-sb_cdp) example of scraping Hacker News:
73+
<p align="left">📗 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_cdp_yc_news.py" target="_blank">This example</a> scrapes Hacker News listings with <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md#-pure-cdp-mode-sb_cdp">Pure CDP Mode</a>:
7474

7575
```python
7676
from seleniumbase import sb_cdp
@@ -82,11 +82,9 @@ for element in elements:
8282
print("* " + element.text)
8383
```
8484

85-
(From [SeleniumBase/examples/cdp_mode/raw_cdp_yc_news.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_cdp_yc_news.py))
86-
8785
--------
8886

89-
<p align="left">📗 Here's a Google Search with UC + CDP Mode:<br /><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py">SeleniumBase/examples/raw_google.py</a> (Results are saved as PDF, HTML, and PNG)</p>
87+
<p align="left">📗 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py" target="_blank">This example</a> saves Google Search results with UC + CDP Mode:<br />(Results are saved as PDF, HTML, and PNG files)</p>
9088

9189
```python
9290
from seleniumbase import SB
@@ -106,7 +104,7 @@ with SB(uc=True, test=True) as sb:
106104

107105
--------
108106

109-
<p align="left">📗 Here's a script that bypasses Cloudflare's challenge page with UC Mode + CDP Mode: <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_gitlab.py">SeleniumBase/examples/cdp_mode/raw_gitlab.py</a></p>
107+
<p align="left">📗 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_gitlab.py" target="_blank">This example</a> bypasses Cloudflare's challenge page with UC + CDP Mode:
110108

111109
```python
112110
from seleniumbase import SB
@@ -128,7 +126,7 @@ with SB(uc=True, test=True, locale="en") as sb:
128126

129127
----
130128

131-
<p align="left">📙 Here's a "Pure CDP Mode" example that handles a CAPTCHA page: <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>
129+
<p align="left">📗 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_cdp_gitlab.py" target="_blank">This example</a> handles a CAPTCHA page with Pure CDP Mode:
132130

133131
```python
134132
from seleniumbase import sb_cdp
@@ -144,7 +142,7 @@ sb.driver.stop()
144142

145143
--------
146144

147-
<p align="left">📗 Here's <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_get_swag.py">SeleniumBase/examples/test_get_swag.py</a>, which tests an e-commerce site:</p>
145+
<p align="left">📗 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_get_swag.py" target="_blank">This example</a> tests an e-commerce site with <code>pytest</code>:
148146

149147
```python
150148
from seleniumbase import BaseCase
@@ -172,11 +170,9 @@ class MyTestClass(BaseCase):
172170
173171
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_get_swag.py"><img src="https://seleniumbase.github.io/cdn/gif/fast_swag_2.gif" alt="SeleniumBase Test" width="480" /></a>
174172

175-
> (The default browser is `--chrome` if not set.)
176-
177173
--------
178174

179-
<p align="left">📗 Here's <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_coffee_cart.py" target="_blank">SeleniumBase/examples/test_coffee_cart.py</a>, which verifies an e-commerce site:</p>
175+
<p align="left">📗 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_coffee_cart.py" target="_blank">This example</a> tests another e-commerce site with <code>pytest</code>:
180176

181177
```zsh
182178
pytest test_coffee_cart.py --demo
@@ -190,7 +186,7 @@ pytest test_coffee_cart.py --demo
190186

191187
<a id="multiple_examples"></a>
192188

193-
<p align="left">📗 Here's <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py" target="_blank">SeleniumBase/examples/test_demo_site.py</a>, which covers several actions:</p>
189+
<p align="left">📗 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py" target="_blank">This example</a> covers multiple actions with <code>pytest</code>:
194190

195191
```zsh
196192
pytest test_demo_site.py

0 commit comments

Comments
 (0)