-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3094 from seleniumbase/update-uc-mode-and-examples
Update UC Mode and examples
- Loading branch information
Showing
12 changed files
with
130 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
"""SB Manager using UC Mode & PyAutoGUI for bypassing CAPTCHAs.""" | ||
from seleniumbase import SB | ||
|
||
with SB(uc=True, test=True) as sb: | ||
with SB(uc=True, test=True, locale_code="en") as sb: | ||
url = "https://www.cloudflare.com/login" | ||
sb.uc_open_with_reconnect(url, 5) | ||
sb.uc_open_with_reconnect(url, 5.5) | ||
sb.uc_gui_handle_captcha() # PyAutoGUI press Tab and Spacebar | ||
sb.sleep(2.5) | ||
|
||
with SB(uc=True, test=True) as sb: | ||
with SB(uc=True, test=True, locale_code="en") as sb: | ||
url = "https://www.cloudflare.com/login" | ||
sb.uc_open_with_reconnect(url, 5) | ||
sb.uc_open_with_reconnect(url, 5.5) | ||
sb.uc_gui_click_captcha() # PyAutoGUI click. (Linux needs it) | ||
sb.sleep(2.5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
from seleniumbase import SB | ||
|
||
with SB(uc=True, test=True, ad_block=True) as sb: | ||
url = "https://www.thaiticketmajor.com/concert/" | ||
url = "https://www.thaiticketmajor.com/concert/#" | ||
sb.uc_open_with_reconnect(url, 6.111) | ||
sb.uc_click("button.btn-signin", 4.1) | ||
sb.uc_gui_click_captcha() | ||
sb.sleep(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,36 @@ | ||
<!-- SeleniumBase Docs --> | ||
|
||
[<img src="https://seleniumbase.github.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md) | ||
<a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290" /></a> | ||
|
||
### Thank you for flying with SeleniumBase! 🦅 | ||
|
||
<h3>🛬🛫 Thank you for flying with SeleniumBase! 🦅🚀</h3> | ||
|
||
-------- | ||
|
||
<p><div><b>SeleniumBase Playlist on YouTube:</b></div></p> | ||
<p><div><b>🛩️ SeleniumBase Playlist on YouTube:</b></div></p> | ||
|
||
<p><span><a href="https://www.youtube.com/playlist?list=PLp9uKicxkBc5UIlGi2BuE3aWC7JyXpD3m"><img src="https://seleniumbase.github.io/cdn/img/youtube.png" title="SeleniumBase Playlist on YouTube" alt="SeleniumBase Playlist on YouTube" width="76" /></a></span></p> | ||
|
||
<p><span><a href="https://www.youtube.com/playlist?list=PLp9uKicxkBc5UIlGi2BuE3aWC7JyXpD3m"><img src="https://seleniumbase.github.io/cdn/img/youtube.png" title="SeleniumBase Playlist on YouTube" alt="SeleniumBase Playlist on YouTube" width="64" /></a></span></p> | ||
<p><div><b>🛩️ SeleniumBase GitHub Home Page:</b></div></p> | ||
|
||
<p><div><b>SeleniumBase GitHub Repo Link:</b></div></p> | ||
<p><div><span><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.github.io/img/social/share_github.svg" title="SeleniumBase on GitHub" alt="SeleniumBase on GitHub" width="74" /></a></span></div></p> | ||
|
||
<p><div><span><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.github.io/img/social/share_github.svg" title="SeleniumBase on GitHub" alt="SeleniumBase on GitHub" width="54" /></a></span></div></p> | ||
<p><div><b>🛩️ SeleniumBase Discord Channel:</b></div></p> | ||
|
||
<p><div><b>SeleniumBase Gitter Chat Link:</b></div></p> | ||
<p><span><a href="https://discord.gg/EdhQTn3EyE"><img src="https://seleniumbase.github.io/other/discord_icon.png" title="SeleniumBase on Discord" alt="SeleniumBase on Discord" width="72" /></a></span></p> | ||
|
||
<p><span><a href="https://gitter.im/seleniumbase/SeleniumBase"><img src="https://seleniumbase.github.io/img/social/share_gitter.svg" title="SeleniumBase on Gitter" alt="SeleniumBase on Gitter" width="42" /></a></span></p> | ||
<p><div><b>🛩️ SeleniumBase Gitter Chat:</b></div></p> | ||
|
||
<p><span><a href="https://gitter.im/seleniumbase/SeleniumBase"><img src="https://seleniumbase.github.io/img/social/share_gitter.svg" title="SeleniumBase on Gitter" alt="SeleniumBase on Gitter" width="56" /></a></span></p> | ||
|
||
<p><div><b>Other Social Media Links:</b></div></p> | ||
|
||
</div></p> | ||
<span><a href="https://www.facebook.com/SeleniumBase"><img src="https://seleniumbase.github.io/img/social/share_facebook.svg" title="SeleniumBase on Facebook" alt="SeleniumBase on Facebook" width="46" /></a></span> | ||
<span><a href="https://twitter.com/seleniumbase"><img src="https://seleniumbase.github.io/img/social/share_twitter.svg" title="SeleniumBase on Twitter" alt="SeleniumBase on Twitter" width="46" /></a></span> | ||
<span><a href="https://instagram.com/seleniumbase"><img src="https://seleniumbase.github.io/img/social/share_instagram.svg" title="SeleniumBase on Instagram" alt="SeleniumBase on Instagram" width="40" /></a></span> | ||
<div></p> | ||
<span><a href="https://www.facebook.com/SeleniumBase"><img src="https://seleniumbase.github.io/img/social/share_facebook.svg" title="SeleniumBase on Facebook" alt="SeleniumBase on Facebook" width="50" /></a></span> | ||
<span><a href="https://twitter.com/seleniumbase"><img src="https://seleniumbase.github.io/img/social/share_twitter.svg" title="SeleniumBase on Twitter" alt="SeleniumBase on Twitter" width="50" /></a></span> | ||
<span><a href="https://instagram.com/seleniumbase"><img src="https://seleniumbase.github.io/img/social/share_instagram.svg" title="SeleniumBase on Instagram" alt="SeleniumBase on Instagram" width="42" /></a></span> | ||
</div></p> | ||
|
||
-------- | ||
|
||
<p><div><a align="center" href="https://github.com/seleniumbase/SeleniumBase/"><img align="center" src="https://seleniumbase.github.io/img/sb_logo_10.png" alt="SeleniumBase" width="260"></a></div></p> | ||
<p><div><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/img/sb_logo_10.png" alt="SeleniumBase" width="260"></a></div></p> |
Oops, something went wrong.