@@ -50,7 +50,7 @@ Simple example: ([SeleniumBase/examples/cdp_mode/raw_gitlab.py](https://github.c
50
50
``` python
51
51
from seleniumbase import SB
52
52
53
- with SB(uc = True , test = True , locale_code = " en" ) as sb:
53
+ with SB(uc = True , test = True , locale = " en" ) as sb:
54
54
url = " https://gitlab.com/users/sign_in"
55
55
sb.activate_cdp_mode(url)
56
56
sb.uc_gui_click_captcha()
@@ -130,7 +130,7 @@ To find out if WebDriver is connected or disconnected, call:
130
130
``` python
131
131
from seleniumbase import SB
132
132
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:
134
134
url = " https://www.pokemon.com/us"
135
135
sb.activate_cdp_mode(url)
136
136
sb.sleep(3.2 )
@@ -189,7 +189,7 @@ with SB(uc=True, test=True, locale_code="en", ad_block=True) as sb:
189
189
``` python
190
190
from seleniumbase import SB
191
191
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:
193
193
url = " https://www.hyatt.com/"
194
194
sb.activate_cdp_mode(url)
195
195
sb.sleep(2.5 )
@@ -236,7 +236,7 @@ with SB(uc=True, test=True, locale_code="en", ad_block=True) as sb:
236
236
``` python
237
237
from seleniumbase import SB
238
238
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:
240
240
url = " https://www.bestwestern.com/en_US.html"
241
241
sb.activate_cdp_mode(url)
242
242
sb.sleep(2.5 )
@@ -328,11 +328,11 @@ with SB(uc=True, test=True, ad_block=True) as sb:
328
328
``` python
329
329
from seleniumbase import SB
330
330
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:
332
332
url = " https://www.nike.com/"
333
333
sb.activate_cdp_mode(url)
334
334
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"]' )
336
336
sb.sleep(1.5 )
337
337
search = " Nike Air Force 1"
338
338
sb.cdp.press_keys(' input[type="search"]' , search)
0 commit comments