Skip to content
Discussion options

You must be logged in to vote

When the CF Turnstile isn't in the usual location, use sb.cdp.gui_click_element(selector).
Sometimes that requires other modifications, like below:

from seleniumbase import SB with SB(uc=True, test=True, ad_block=True) as sb: url = "https://www.glassdoor.com/Reviews/index.htm" sb.activate_cdp_mode(url) sb.sleep(2) cf_grid = '[style="display: grid;"]' cf_shadow = "%s div div" % cf_grid cf_new_style = "display: grid; width: 300px;" cf_new_shadow = '[style="%s"] div div' % cf_new_style sb.uc_gui_click_captcha() if sb.is_element_visible(cf_shadow): sb.cdp.set_attributes(cf_grid, "style", cf_new_style) sb.cdp.gui_click_element(cf_new_shadow)…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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