-
I need to fetch attribute of html tag inside iframe using CDP mode I'm doing this by I know about sb.cdp.get_nested_element() method but when I use it like this:
I get exception:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You may be able to use these for interacting with elements inside of iframes: (Use the iframe selector as the sb.cdp.nested_click(parent_selector, selector)
sb.cdp.get_nested_element(parent_selector, selector) The selector you used inside of |
Beta Was this translation helpful? Give feedback.
-
I want to solve recaptcha with 3rd party service, but I need to feed them with img.
also didn't work:
|
Beta Was this translation helpful? Give feedback.
-
gui_click opens image solver |
Beta Was this translation helpful? Give feedback.
switch_to_frame()
is a WebDriver-only method. Calling that will switch to WebDriver Mode, which makes you detectable.See the bottom of SeleniumBase/examples/cdp_mode/ReadMe.md for CDP Mode methods.
You may be able to use these for interacting with elements inside of iframes: (Use the iframe selector as the
parent_selector
)The selector you used inside of
get_nested_element()
is incorrect. (You didn't have a closing bracket]
for your selector.)There's a method,
sb.uc_gui_click_captcha()
for clicking on CAPTCHAs (specifically Turnstile and reCAPTCHA), but there are no guarantees it'll work…