@@ -18,7 +18,7 @@ def test_presentation_3(self):
1818 self .begin_presentation (filename = "uc_presentation.html" )
1919
2020 self .open ("https://seleniumbase.io/other/uc3_title.jpg" )
21- self .sleep (3 )
21+ self .sleep (2.5 )
2222
2323 self .create_presentation (theme = "serif" , transition = "fade" )
2424 self .add_slide (
@@ -108,11 +108,11 @@ def test_presentation_3(self):
108108 "<p><mk-0>Special <b>UC Mode</b> methods for clicking CAPTCHAs:"
109109 "</mk-0></p><hr /><div></div>"
110110 "<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 "
113113 "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 "
116116 "PyAutoGUI clicks CAPTCHA with the mouse.<br />\n "
117117 "(Note that you'll need to use this one on Linux!)\n "
118118 "</ul>\n \n \n \n "
@@ -171,7 +171,7 @@ def test_presentation_3(self):
171171 "<mk-2>with SB(uc=True) as sb:</mk-2>\n "
172172 '<mk-3> url = "https://gitlab.com/users/sign_in"</mk-3>\n '
173173 "<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 "
175175 "<mk-6> ...</mk-6>\n \n \n \n \n \n "
176176 ),
177177 )
@@ -183,7 +183,7 @@ def test_presentation_3(self):
183183 "with SB(uc=True) as sb:\n "
184184 ' url = "https://gitlab.com/users/sign_in"\n '
185185 " sb.uc_open_with_reconnect(url, 4)\n "
186- " uc_gui_handle_captcha()\n \n "
186+ " sb. uc_gui_handle_captcha()\n \n "
187187 '<mk-1> sb.assert_text("Username", \' [for="user_login"]\' ,'
188188 ' timeout=3)</mk-1>\n '
189189 '<mk-2> sb.assert_element(\' [for="user_login"]\' )</mk-2>\n '
@@ -221,7 +221,7 @@ def test_presentation_3(self):
221221 "<mk-2>with SB(uc=True) as sb:</mk-2>\n "
222222 '<mk-3> url = "https://gitlab.com/users/sign_in"</mk-3>\n '
223223 "<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 "
225225 "<mk-6> ...</mk-6>\n \n \n \n \n "
226226 ),
227227 )
@@ -233,7 +233,7 @@ def test_presentation_3(self):
233233 "with SB(uc=True) as sb:\n "
234234 ' url = "https://gitlab.com/users/sign_in"\n '
235235 " sb.uc_open_with_reconnect(url, 4)\n "
236- " uc_gui_click_captcha()\n \n "
236+ " sb. uc_gui_click_captcha()\n \n "
237237 '<mk-1> sb.assert_text("Username", \' [for="user_login"]\' ,'
238238 ' timeout=3)</mk-1>\n '
239239 '<mk-2> sb.assert_element(\' [for="user_login"]\' )</mk-2>\n '
@@ -252,8 +252,8 @@ def test_presentation_3(self):
252252 "<li><mk-2>Navigate with stealth by calling "
253253 "<code><b>sb.uc_open_with_reconnect(url)</b></code>"
254254 "</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>"
257257 " to bypass CAPTCHAs as needed.</mk-3></li>\n "
258258 "</ul>\n "
259259 "<p><br /><mk-4>(It's that easy!)</mk-4></p><br />\n "
@@ -263,7 +263,7 @@ def test_presentation_3(self):
263263 "<hr /><div></div><br />"
264264 "<ul>\n "
265265 "<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>"
267267 "</mk-1></li><br />\n "
268268 "<mk-2>Although this method can no longer click a<br />"
269269 "CAPTCHA directly, it should be used when<br />"
@@ -281,7 +281,7 @@ def test_presentation_3(self):
281281 url = "https://ahrefs.com/website-authority-checker"
282282 input_field = 'input[placeholder="Enter domain"]'
283283 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
285285 sb .type (input_field , "github.com/seleniumbase/SeleniumBase" )
286286 sb .reconnect (0.1 )
287287 sb .uc_click (submit_button , reconnect_time = 4 )
@@ -349,7 +349,7 @@ def test_presentation_3(self):
349349 ' url = "https://steamdb.info/"\n '
350350 " sb.uc_open_with_reconnect(url, 3)\n "
351351 ' 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 "
353353 '<mk-1> sb.assert_text("Sign in", "button#js-sign-in",'
354354 ' timeout=3)</mk-1>\n '
355355 '<mk-2> sb.uc_click("button#js-sign-in", 2)</mk-2>\n '
@@ -726,7 +726,7 @@ def test_presentation_3(self):
726726 "<p>👤 <mk-0>The plan to handle real-time bot-scanning</mk-0> 👤</p>"
727727 "<hr /><h6><br /></h6>"
728728 "<p>"
729- '<pre><code>uc_gui_click_captcha(frame="iframe", retry=False,'
729+ '<pre><code>sb. uc_gui_click_captcha(frame="iframe", retry=False,'
730730 ' <mk-1>blind=True</mk-1>)</code></pre><br /><mk-1>'
731731 'Set the third arg, `blind`, to `True` to force a retry'
732732 ' (if the first click failed) by clicking at the last known'
0 commit comments