@@ -18,7 +18,7 @@ def test_presentation_3(self):
18
18
self .begin_presentation (filename = "uc_presentation.html" )
19
19
20
20
self .open ("https://seleniumbase.io/other/uc3_title.jpg" )
21
- self .sleep (3 )
21
+ self .sleep (2.5 )
22
22
23
23
self .create_presentation (theme = "serif" , transition = "fade" )
24
24
self .add_slide (
@@ -108,11 +108,11 @@ def test_presentation_3(self):
108
108
"<p><mk-0>Special <b>UC Mode</b> methods for clicking CAPTCHAs:"
109
109
"</mk-0></p><hr /><div></div>"
110
110
"<ul><br />\n "
111
- "<li><mk-1><code><b>uc_gui_handle_captcha()</b></code></mk-1></li >"
112
- "\n "
111
+ "<li><mk-1><code><b>sb. uc_gui_handle_captcha()</b></code></mk-1>"
112
+ "</li> \n "
113
113
"PyAutoGUI uses the TAB key with SPACEBAR.<br /><br />\n \n "
114
- "<li><mk-2><code><b>uc_gui_click_captcha()</b></code></mk-2></li >"
115
- "\n \n "
114
+ "<li><mk-2><code><b>sb. uc_gui_click_captcha()</b></code></mk-2>"
115
+ "</li> \n \n "
116
116
"PyAutoGUI clicks CAPTCHA with the mouse.<br />\n "
117
117
"(Note that you'll need to use this one on Linux!)\n "
118
118
"</ul>\n \n \n \n "
@@ -171,7 +171,7 @@ def test_presentation_3(self):
171
171
"<mk-2>with SB(uc=True) as sb:</mk-2>\n "
172
172
'<mk-3> url = "https://gitlab.com/users/sign_in"</mk-3>\n '
173
173
"<mk-4> sb.uc_open_with_reconnect(url, 4)</mk-4>\n "
174
- "<mk-5> uc_gui_handle_captcha()</mk-5>\n \n "
174
+ "<mk-5> sb. uc_gui_handle_captcha()</mk-5>\n \n "
175
175
"<mk-6> ...</mk-6>\n \n \n \n \n \n "
176
176
),
177
177
)
@@ -183,7 +183,7 @@ def test_presentation_3(self):
183
183
"with SB(uc=True) as sb:\n "
184
184
' url = "https://gitlab.com/users/sign_in"\n '
185
185
" sb.uc_open_with_reconnect(url, 4)\n "
186
- " uc_gui_handle_captcha()\n \n "
186
+ " sb. uc_gui_handle_captcha()\n \n "
187
187
'<mk-1> sb.assert_text("Username", \' [for="user_login"]\' ,'
188
188
' timeout=3)</mk-1>\n '
189
189
'<mk-2> sb.assert_element(\' [for="user_login"]\' )</mk-2>\n '
@@ -221,7 +221,7 @@ def test_presentation_3(self):
221
221
"<mk-2>with SB(uc=True) as sb:</mk-2>\n "
222
222
'<mk-3> url = "https://gitlab.com/users/sign_in"</mk-3>\n '
223
223
"<mk-4> sb.uc_open_with_reconnect(url, 4)</mk-4>\n "
224
- "<mk-5> uc_gui_click_captcha()</mk-5>\n \n "
224
+ "<mk-5> sb. uc_gui_click_captcha()</mk-5>\n \n "
225
225
"<mk-6> ...</mk-6>\n \n \n \n \n "
226
226
),
227
227
)
@@ -233,7 +233,7 @@ def test_presentation_3(self):
233
233
"with SB(uc=True) as sb:\n "
234
234
' url = "https://gitlab.com/users/sign_in"\n '
235
235
" sb.uc_open_with_reconnect(url, 4)\n "
236
- " uc_gui_click_captcha()\n \n "
236
+ " sb. uc_gui_click_captcha()\n \n "
237
237
'<mk-1> sb.assert_text("Username", \' [for="user_login"]\' ,'
238
238
' timeout=3)</mk-1>\n '
239
239
'<mk-2> sb.assert_element(\' [for="user_login"]\' )</mk-2>\n '
@@ -252,8 +252,8 @@ def test_presentation_3(self):
252
252
"<li><mk-2>Navigate with stealth by calling "
253
253
"<code><b>sb.uc_open_with_reconnect(url)</b></code>"
254
254
"</mk-2></li><br />\n "
255
- "<li><mk-3>Use <code><b>uc_gui_handle_captcha()</b></code>"
256
- " or <code><b>uc_gui_click_captcha()</b></code>"
255
+ "<li><mk-3>Use <code><b>sb. uc_gui_handle_captcha()</b></code>"
256
+ " or <code><b>sb. uc_gui_click_captcha()</b></code>"
257
257
" to bypass CAPTCHAs as needed.</mk-3></li>\n "
258
258
"</ul>\n "
259
259
"<p><br /><mk-4>(It's that easy!)</mk-4></p><br />\n "
@@ -263,7 +263,7 @@ def test_presentation_3(self):
263
263
"<hr /><div></div><br />"
264
264
"<ul>\n "
265
265
"<li><mk-1>Previous tutorials mentioned this method:<br />"
266
- "<code><b>uc_click(selector)</b></code>"
266
+ "<code><b>sb. uc_click(selector)</b></code>"
267
267
"</mk-1></li><br />\n "
268
268
"<mk-2>Although this method can no longer click a<br />"
269
269
"CAPTCHA directly, it should be used when<br />"
@@ -281,7 +281,7 @@ def test_presentation_3(self):
281
281
url = "https://ahrefs.com/website-authority-checker"
282
282
input_field = 'input[placeholder="Enter domain"]'
283
283
submit_button = 'span:contains("Check Authority")'
284
- sb .uc_open_with_reconnect (url , 2 ) # The bot-check is later
284
+ sb .uc_open_with_reconnect (url ) # The bot-check is later
285
285
sb .type (input_field , "github.com/seleniumbase/SeleniumBase" )
286
286
sb .reconnect (0.1 )
287
287
sb .uc_click (submit_button , reconnect_time = 4 )
@@ -349,7 +349,7 @@ def test_presentation_3(self):
349
349
' url = "https://steamdb.info/"\n '
350
350
" sb.uc_open_with_reconnect(url, 3)\n "
351
351
' sb.uc_click("a.header-login span", 3)\n \n '
352
- "<mk-0> uc_gui_click_captcha()</mk-0>\n "
352
+ "<mk-0> sb. uc_gui_click_captcha()</mk-0>\n "
353
353
'<mk-1> sb.assert_text("Sign in", "button#js-sign-in",'
354
354
' timeout=3)</mk-1>\n '
355
355
'<mk-2> sb.uc_click("button#js-sign-in", 2)</mk-2>\n '
@@ -726,7 +726,7 @@ def test_presentation_3(self):
726
726
"<p>👤 <mk-0>The plan to handle real-time bot-scanning</mk-0> 👤</p>"
727
727
"<hr /><h6><br /></h6>"
728
728
"<p>"
729
- '<pre><code>uc_gui_click_captcha(frame="iframe", retry=False,'
729
+ '<pre><code>sb. uc_gui_click_captcha(frame="iframe", retry=False,'
730
730
' <mk-1>blind=True</mk-1>)</code></pre><br /><mk-1>'
731
731
'Set the third arg, `blind`, to `True` to force a retry'
732
732
' (if the first click failed) by clicking at the last known'
0 commit comments