1.swith to ifram driver.switch_to.frame(driver.find_element_by_id("z_hppm_iframe")) 2.go back to the normal pge driver.switch_to.default_content()