@@ -50,7 +50,7 @@ Simple example: ([SeleniumBase/examples/cdp_mode/raw_gitlab.py](https://github.c
5050``` python
5151from 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
131131from 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
190190from 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
237237from 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
329329from 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