-
Hi, with the new version of the Seleniumbase I started to face issue with has this method been removed? |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Dec 27, 2023
Replies: 1 comment
-
It's still there. from seleniumbase import SB
with SB(uc=True, test=True) as sb:
sb.driver.uc_open_with_tab("https://nowsecure.nl/#relax")
sb.sleep(1.2)
if not sb.is_text_visible("OH YEAH, you passed!", "h1"):
sb.get_new_driver(undetectable=True)
sb.driver.uc_open_with_reconnect(
"https://nowsecure.nl/#relax", reconnect_time=3
)
sb.sleep(1.2)
if not sb.is_text_visible("OH YEAH, you passed!", "h1"):
if sb.is_element_visible('iframe[src*="challenge"]'):
with sb.frame_switch('iframe[src*="challenge"]'):
sb.click("span.mark")
sb.sleep(2)
sb.activate_demo_mode()
sb.assert_text("OH YEAH, you passed!", "h1", timeout=3)
sb.open("about:blank")
sb.sleep(0.55)
sb.driver.default_get("https://nowsecure.nl/#relax")
sb.assert_text("OH YEAH, you passed!", "h1", timeout=3) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's still there.
Use
sb.driver.default_get(URL)
when you want to open a URL without the special bot-detection-evasion code.Useful if going back to the same site where you already bypassed detection before in that same browser session.
(Then there's no delay for the driver disconnecting from Chrome, pausing for a bit, and reconnecting to Chrome.)