select radio button in twitter such as picture below by selenium webdriver with python?
If you open the developer tools of the twitter page, you can see that the dialog contains an iframe (id = "new-report-flow-frame"). You should first switch to that iframe before searching for a radio button
driver.switch_to.frame(driver.find_element_by_id("new-report-flow-frame")) driver.find_element_by_css_selector("[value='illegal_product']")
You should first switch to popup window with something like
driver.switch_to_window(driver.window_handles[1])
Copyright © 2021 Jogjafile Inc.
If you open the developer tools of the twitter page, you can see that the dialog contains an iframe (id = "new-report-flow-frame"). You should first switch to that iframe before searching for a radio button