iframe Symptom: "The button is displayed on the execution screen, but Element is not found!"
→ Cause and solution: You cannot find the element unless you switch the iframe one by one.
driver.switch_to.frame(driver.find_elements_by_tag_name("iframe")[0])
driver.find_element_by_css_selector("#hogefuga").click()
driver.switch_to.default_content()
Symptom: I can get the element of the button, but I can't press it. Error text:
Element <a class="hoge" href="/fuga">...</a> is not clickable at point (748, 591). Other element would receive the click: <div class="piyo">...</div>
→ Cause and solution: Click Body etc. once
driver.find_element_by_tag_name("body").click()
Recommended Posts