Skip to content

Getting detected on http://stats.customs.gov.cn/indexEn #3749

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

You must be logged in to vote

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)

sb.cdp.nested_click(parent_selector, selector)
sb.cdp.get_nested_element(parent_selector, selector)

And instead of using select_option_by_value(), use select_option_by_text() in CDP Mode.

Replies: 2 comments

Comment options

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