Select an element from the dropdown (top-right) or use the links to open a dedicated test page with instructions.
This iframe contains an internal button — switch to iframe to interact.
- Switch to the iframe and click the internal button with id inside_btn.
// Java
WebElement frame = driver.findElement(By.id("element_iframe"));
driver.switchTo().frame(frame);
driver.findElement(By.id("inside_btn")).click();
driver.switchTo().defaultContent();
# Python
frame = driver.find_element(By.ID, "element_iframe")
driver.switch_to.frame(frame)
driver.find_element(By.ID, "inside_btn").click()
driver.switch_to.default_content()
Tip: use By.id selectors where possible. IDs used on this page are stable and intended for automated testing.