Selenium can be used for this.
Example:
Example:
browser = webdriver.Chrome() # Give some time to load time.sleep(3) # Switch to iframe browser.switch_to.frame(driver.find_element_by_tag_name("iframe")) # Do some stuff with iframe elem = driver.find_element_by_xpath("body/p/strong") elem.send_keys("Lorem Ipsum") # Back to default content,also out of iframe driver.switch_to.default_content()There are also Waits.
wait = WebDriverWait(driver, 300) wait.until(EC.frame_to_be_available_and_switch_to_it((By.NAME,'iframe_name')))More info here.