Skip to content

Commit aa0b70a

Browse files
authoredFeb 26, 2025
Merge pull request #3573 from seleniumbase/cdp-mode-patch-38
CDP Mode: Patch 38
2 parents 5d732a4 + 2024056 commit aa0b70a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+188
-162
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ with SB(test=True, uc=True) as sb:
9090
```python
9191
from seleniumbase import SB
9292

93-
with SB(uc=True, test=True, locale_code="en") as sb:
93+
with SB(uc=True, test=True, locale="en") as sb:
9494
url = "https://gitlab.com/users/sign_in"
9595
sb.activate_cdp_mode(url)
9696
sb.uc_gui_click_captcha()

‎examples/cdp_mode/ReadMe.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Simple example: ([SeleniumBase/examples/cdp_mode/raw_gitlab.py](https://github.c
5050
```python
5151
from seleniumbase import SB
5252

53-
with SB(uc=True, test=True, locale_code="en") as sb:
53+
with SB(uc=True, test=True, locale="en") as sb:
5454
url = "https://gitlab.com/users/sign_in"
5555
sb.activate_cdp_mode(url)
5656
sb.uc_gui_click_captcha()
@@ -130,7 +130,7 @@ To find out if WebDriver is connected or disconnected, call:
130130
```python
131131
from seleniumbase import SB
132132

133-
with SB(uc=True, test=True, locale_code="en", ad_block=True) as sb:
133+
with SB(uc=True, test=True, locale="en", ad_block=True) as sb:
134134
url = "https://www.pokemon.com/us"
135135
sb.activate_cdp_mode(url)
136136
sb.sleep(3.2)
@@ -189,7 +189,7 @@ with SB(uc=True, test=True, locale_code="en", ad_block=True) as sb:
189189
```python
190190
from seleniumbase import SB
191191

192-
with SB(uc=True, test=True, locale_code="en", ad_block=True) as sb:
192+
with SB(uc=True, test=True, locale="en", ad_block=True) as sb:
193193
url = "https://www.hyatt.com/"
194194
sb.activate_cdp_mode(url)
195195
sb.sleep(2.5)
@@ -236,7 +236,7 @@ with SB(uc=True, test=True, locale_code="en", ad_block=True) as sb:
236236
```python
237237
from seleniumbase import SB
238238

239-
with SB(uc=True, test=True, locale_code="en", ad_block=True) as sb:
239+
with SB(uc=True, test=True, locale="en", ad_block=True) as sb:
240240
url = "https://www.bestwestern.com/en_US.html"
241241
sb.activate_cdp_mode(url)
242242
sb.sleep(2.5)
@@ -328,11 +328,11 @@ with SB(uc=True, test=True, ad_block=True) as sb:
328328
```python
329329
from seleniumbase import SB
330330

331-
with SB(uc=True, test=True, locale_code="en", pls="none") as sb:
331+
with SB(uc=True, test=True, locale="en", pls="none") as sb:
332332
url = "https://www.nike.com/"
333333
sb.activate_cdp_mode(url)
334334
sb.sleep(2.5)
335-
sb.cdp.mouse_click('div[data-testid="user-tools-container"]')
335+
sb.cdp.click('div[data-testid="user-tools-container"]')
336336
sb.sleep(1.5)
337337
search = "Nike Air Force 1"
338338
sb.cdp.press_keys('input[type="search"]', search)

0 commit comments

Comments
 (0)
Failed to load comments.