A JavaScript alert, confirm, or prompt dialog appeared unexpectedly, blocking automation. Selenium cannot interact with the page until the alert is dismissed.
// Python from selenium.webdriver.common.alert import Alert alert = Alert(driver) print(alert.text) # Read alert text alert.accept() # Click OK # or alert.dismiss() # Click Cancel
Use the Alert class to inspect and handle JavaScript dialogs.
// Python
from selenium.webdriver.chrome.options import Options
options = Options()
options.set_capability('unhandledPromptBehavior', 'accept')
driver = webdriver.Chrome(options=options)Automatically accept all alerts. Useful when you don't care about alert content.
ObserveOne monitors browser dialogs and handles unexpected alerts automatically during test execution.
Start Monitoring FreeThe element exists in the DOM but cannot be interacted with. It may be hidden, disabled, or covered by another element.
The element previously located is no longer attached to the DOM. The page was refreshed, navigated, or the element was re-rendered by JavaScript.
No element matching the locator strategy could be found in the current page DOM. The element may not exist, may not have loaded yet, or the locator may be incorrect.
The click command could not be completed because another element would receive the click at the target coordinates. A different element is covering the target.
WebDriver could not create a new browser session. Usually caused by a version mismatch between the browser and the driver.