-
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 #2693 from seleniumbase/docker-overhaul
Docker overhaul and more
- Loading branch information
Showing
9 changed files
with
76 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""SB Manager using UC Mode for evading bot-detection.""" | ||
from seleniumbase import SB | ||
|
||
with SB(uc=True, test=True, disable_csp=True) as sb: | ||
url = "https://steamdb.info/" | ||
sb.driver.uc_open_with_reconnect(url, 3) | ||
sb.uc_click("a.header-login span", 4) | ||
if not sb.is_text_visible("Sign in", "button#js-sign-in"): | ||
sb.driver.uc_open_with_reconnect(url, 3) | ||
sb.uc_click("a.header-login span", 4) | ||
sb.assert_text("Sign in", "button#js-sign-in", timeout=3) | ||
sb.driver.uc_click("button#js-sign-in", 2) | ||
sb.highlight("div.page_content form") | ||
sb.highlight('button:contains("Sign in")', scroll=False) | ||
sb.set_messenger_theme(location="top_center") | ||
sb.post_message("SeleniumBase wasn't detected", duration=4) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 +1,2 @@ | ||
# seleniumbase package | ||
__version__ = "4.25.3" | ||
__version__ = "4.25.4" |
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