Getting detected on http://stats.customs.gov.cn/indexEn #3749
-
Hello Trying to use Selenium Base to download some data from http://stats.customs.gov.cn/indexEn
What I am doing wrong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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) And instead of using |
Beta Was this translation helpful? Give feedback.
-
Awesome, that did the trick. Full code for anyone who may be interested
|
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
)And instead of using
select_option_by_value()
, useselect_option_by_text()
in CDP Mode.