Skip to content

Turnstile: error #2877

Closed Answered by mdmintz
mike007-1 asked this question in Q&A
Jun 26, 2024 · 5 comments · 3 replies
Discussion options

You must be logged in to vote

UC Mode no longer works in Headless Mode, as it needs a GUI Display for pyautogui.

UC Mode now needs a special X11 virtual display to run on Linux, which is included with the SB() and BaseCase formats, but not the limited Driver() format.

Try the example:

from seleniumbase import SB

with SB(uc=True, test=True) as sb:
    url = "https://www.virtualmanager.com/en/login"
    sb.uc_open_with_reconnect(url, 4)
    print(sb.get_page_title())
    sb.uc_gui_handle_cf()  # Ready if needed!
    print(sb.get_page_title())
    sb.assert_element('input[name*="email"]')
    sb.assert_element('input[name*="login"]')
    sb.set_messenger_theme(location="bottom_center")
    sb.post_message("SeleniumBase …

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
1 reply
@mdmintz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mdmintz
Comment options

@mike007-1
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants