# NoSuchElementException (Selenium)

Source: https://www.observeone.com/community/errors/selenium/no-such-element

[ObserveOne](/)[Features](/#features)[Pricing](/#pricing)[Blog](/blog)[CLI](/cli)[Docs](/docs)

[Sign in](https://app.observeone.com/auth?tab=signin)[Start Free](https://app.observeone.com/auth?tab=signup)

[Error Dictionary](/community/errors)/[Selenium](/community/errors/selenium)/no-such-elementhigh

# NoSuchElementException

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.

## Common Causes

- 1Element hasn't loaded yet — no explicit wait used
- 2Incorrect locator (typo in ID, class, or XPath)
- 3Element is inside an iframe that hasn't been switched to
- 4Element is in a shadow DOM
- 5Page hasn't finished rendering

## How to Fix

### Use explicit waits instead of findElement

// Python
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By

element = WebDriverWait(driver, 10).until(
 EC.visibility_of_element_located((By.CSS_SELECTOR, '#my-element'))
)Explicit waits poll the DOM until the element appears or the timeout expires. Much more reliable than Thread.sleep().

### Switch to iframe first

// Python
driver.switch_to.frame('iframe-id')
element = driver.find_element(By.ID, 'button')
element.click()
driver.switch_to.default_content()Elements inside iframes are not accessible from the main document. Switch to the iframe context first.

## How ObserveOne Helps

ObserveOne's self-healing locators automatically find alternative selectors when elements can't be found.

[Start Monitoring Free](https://app.observeone.com/auth?tab=signup)

## Related Errors

[StaleElementReferenceExceptionThe element previously located is no longer attached to the DOM. The page was refreshed, navigated, or the element was re-rendered by JavaScript.](/community/errors/selenium/stale-element-reference)[ElementNotInteractableExceptionThe element exists in the DOM but cannot be interacted with. It may be hidden, disabled, or covered by another element.](/community/errors/selenium/element-not-interactable)[ElementClickInterceptedExceptionThe click command could not be completed because another element would receive the click at the target coordinates. A different element is covering the target.](/community/errors/selenium/element-click-intercepted)[SessionNotCreatedException: Could not start a new sessionWebDriver could not create a new browser session. Usually caused by a version mismatch between the browser and the driver.](/community/errors/selenium/session-not-created)[WebDriverException: 'chromedriver' executable needs to be in PATHThe WebDriver binary (chromedriver, geckodriver, etc.) cannot be found in the system PATH. Selenium needs the driver binary to communicate with the browser.](/community/errors/selenium/webdriver-not-found)

ObserveOne

Agentic QA and synthetic monitoring built for engineering teams. Plan, generate, and run suites from the web UI. Connect to CI for reliable coverage across critical journeys.

### Product

- [Features](/#features)
- [Pricing](/#pricing)
- [QA Coverage](/qa-coverage)
- [API Monitoring](/api-monitoring)
- [Free Website Check](/free-website-check)

### Developers

- [CLI](/cli)
- [Docs](/docs)
- [For Agents](/agents)
- [Self-host (oo-workers)](/workers)
- [Status Pages](/status)
- [Netlify Extension](https://app.netlify.com/extensions/mzs1lgc3-observeone)

### Resources

- [Blog](/blog)
- [Bug Book](/bug-book)
- [Guides](/community/guides)
- [Tools](/community/tools)
- [Error Dictionary](/community/errors)

### Compare

- [Tool Comparisons](/compare)
- [Tool Alternatives](/alternatives)
- [Best by Category](/best)
- [Search](/search)

© 2026 ObserveOne. All rights reserved.

[About](/about)[Privacy Policy](/privacy)[Terms of Service](/terms)[Affiliates](/affiliates)[Become an Affiliate](/affiliate-terms)
