# Error: element is intercepted by another element (Playwright)

Source: https://www.observeone.com/community/errors/playwright/element-intercepted

[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)/[Playwright](/community/errors/playwright)/element-interceptedmedium

# Error: element is intercepted by another element

Another element (like a modal, overlay, or tooltip) is covering the target element, preventing Playwright from clicking it.

## Common Causes

- 1Cookie consent banner covering the element
- 2Loading spinner or overlay blocking the page
- 3Sticky header/footer covering the element
- 4Tooltip or dropdown from another element overlapping
- 5z-index stacking issue

## How to Fix

### Close the intercepting element first

// Close cookie banner
const banner = page.locator('[data-testid="cookie-banner"]');
if (await banner.isVisible()) {
 await banner.locator('button').click();
}
await page.locator('#target').click();Dismiss overlays, modals, or banners before interacting with the target element.

### Scroll the element into clear view

await page.locator('#target').scrollIntoViewIfNeeded();
await page.locator('#target').click();Ensures the element is scrolled into view and not behind a sticky header.

## How ObserveOne Helps

ObserveOne detects overlay and z-index issues across your application and flags elements that may cause interaction failures.

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

## Related Errors

[TimeoutError: waiting for selectorPlaywright waited for an element matching the given selector but it did not appear within the timeout. The element may not exist, may be hidden, or may appear under a different selector.](/community/errors/playwright/waiting-for-selector)[Error: element is not visibleThe target element exists in the DOM but is not visible. Playwright requires elements to be visible before interacting with them (clicking, typing, etc.).](/community/errors/playwright/element-not-visible)[TimeoutError: Exceeded 30000msThe default action timeout (30 seconds) was exceeded before the operation could complete. This commonly occurs during navigation, element waits, or network-dependent operations.](/community/errors/playwright/timeout-30000ms)[TimeoutError: page.goto: Timeout 30000ms exceededNavigation to the target URL did not complete within the timeout period. The page either failed to respond or took too long to reach the 'load' event.](/community/errors/playwright/navigation-timeout)[Error: strict mode violation: locator resolved to N elementsA locator matched more than one element, but the action requires exactly one. Playwright's strict mode (enabled by default) prevents ambiguous interactions.](/community/errors/playwright/strict-mode-violation)

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)
