Skip to content

Scripts sometimes clicks the verification button, but mostly not with sb.uc_gui_handle_cf #2915

Answered by mdmintz
misterpeople asked this question in Q&A
Discussion options

You must be logged in to vote

It's probably timing-related.
You could try the newer uc_gui_click_cf() command in 4.28.4 (and newer versions).

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)
    sb.uc_gui_click_cf()
    sb.assert_element('input[name*="email"]')
    sb.assert_element('input[name*="login"]')
    sb.set_messenger_theme(location="bottom_center")
    sb.post_message("SeleniumBase wasn't detected!")

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@misterpeople
Comment options

@mdmintz
Comment options

@misterpeople
Comment options

@mdmintz
Comment options

@misterpeople
Comment options

Answer selected by mdmintz
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