-
Notifications
You must be signed in to change notification settings - Fork 981
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 #2544 from seleniumbase/mostly-uc-mode-updates
Mostly UC Mode updates
- Loading branch information
Showing
14 changed files
with
84 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from seleniumbase import SB | ||
|
||
with SB(uc=True, test=True) as sb: | ||
sb.driver.uc_open_with_reconnect("https://nopecha.com/demo/turnstile", 5) | ||
sb.driver.uc_switch_to_frame("#example-container5 iframe") | ||
sb.driver.uc_click("span.mark") | ||
|
||
if sb.is_element_visible("#example-container0 iframe"): | ||
sb.switch_to_frame("#example-container0 iframe") | ||
if not sb.is_element_visible("circle.success-circle"): | ||
sb.driver.uc_click("span.mark") | ||
sb.switch_to_frame("#example-container0 iframe") | ||
sb.assert_element("circle.success-circle") | ||
sb.switch_to_parent_frame() | ||
sb.switch_to_frame("#example-container5 iframe") | ||
sb.assert_element("svg#success-icon", timeout=3) | ||
sb.switch_to_parent_frame() | ||
sb.set_messenger_theme(location="top_center") | ||
sb.post_message("Selenium wasn't detected!", duration=3) |
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,13 @@ | ||
from seleniumbase import SB | ||
|
||
with SB(uc=True, incognito=True, test=True) as sb: | ||
sb.driver.uc_open_with_reconnect("https://pixelscan.net/", 11) | ||
sb.remove_elements("jdiv") # Remove chat widgets | ||
sb.assert_text("No automation framework detected", "pxlscn-bot-detection") | ||
sb.assert_text("You are not masking your fingerprint") | ||
sb.highlight("span.text-success", loops=10) | ||
sb.sleep(1) | ||
sb.highlight("pxlscn-fingerprint-masking div", loops=10, scroll=False) | ||
sb.sleep(1) | ||
sb.highlight("div.bot-detection-context", loops=10, scroll=False) | ||
sb.sleep(3) |
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
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.24.1" | ||
__version__ = "4.24.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
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