Select an element from the dropdown (top-right) or use the links to open a dedicated test page with instructions.
- Click the link and handle the JS alert.
driver.findElement(By.id("element_link")).click();
Alert alert = driver.switchTo().alert();
alert.accept();
# Python
driver.find_element(By.ID, "element_link").click()
alert = driver.switch_to.alert
alert.accept()
Tip: use By.id selectors where possible. IDs used on this page are stable and intended for automated testing.