Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ElementNotInteractableException to Common Errors #1972

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,19 @@ This exception occurs when the WebDriver is unable to create a new session for t
- On macOS, go to **System Settings > Privacy & Security**, and allow the driver to run if blocked.
- Verify the driver binary is executable (`chmod +x /path/to/driver` on Linux/macOS).

## ElementNotInteractableException

This occurs when Selenium is unable to interact with a WebElement.

### Likely Cause

This usually occurs when one of three things happens:
* An element is not displayed
* An element is neither pointer nor keyboard interactable
* An element's center point can not be scrolled into the viewport

### Possible Solutions

Depending on the circumstance, there might _not_ be anything you can do. However, possible
things to try are setting [Explicit Waits]({{< ref "../waits#explicit-waits" >}}) or interacting
with another element/clicking a button on the page that might change state of the DOM.
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,21 @@ This exception occurs when the WebDriver is unable to create a new session for t

- Ensure the WebDriver version matches the browser version. For Chrome, check the browser version at `chrome://settings/help` and download the matching driver from [ChromeDriver Downloads](https://chromedriver.chromium.org/downloads).
- On macOS, go to **System Settings > Privacy & Security**, and allow the driver to run if blocked.
- Verify the driver binary is executable (`chmod +x /path/to/driver` on Linux/macOS).
- Verify the driver binary is executable (`chmod +x /path/to/driver` on Linux/macOS).

## ElementNotInteractableException

This occurs when Selenium is unable to interact with a WebElement.

### Likely Cause

This usually occurs when one of three things happens:
* An element is not displayed
* An element is neither pointer nor keyboard interactable
* An element's center point can not be scrolled into the viewport

### Possible Solutions

Depending on the circumstance, there might _not_ be anything you can do. However, possible
things to try are setting [Explicit Waits]({{< ref "../waits#explicit-waits" >}}) or interacting
with another element/clicking a button on the page that might change state of the DOM.
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,19 @@ This exception occurs when the WebDriver is unable to create a new session for t
- On macOS, go to **System Settings > Privacy & Security**, and allow the driver to run if blocked.
- Verify the driver binary is executable (`chmod +x /path/to/driver` on Linux/macOS).

## ElementNotInteractableException

This occurs when Selenium is unable to interact with a WebElement.

### Likely Cause

This usually occurs when one of three things happens:
* An element is not displayed
* An element is neither pointer nor keyboard interactable
* An element's center point can not be scrolled into the viewport

### Possible Solutions

Depending on the circumstance, there might _not_ be anything you can do. However, possible
things to try are setting [Explicit Waits]({{< ref "../waits#explicit-waits" >}}) or interacting
with another element/clicking a button on the page that might change state of the DOM.
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,20 @@ Actions class with `Actions.moveToElement(element)`.
- 确保 WebDriver 版本与浏览器版本匹配。对于 Chrome,请在浏览器中访问 `chrome://settings/help` 检查浏览器版本,并从 [ChromeDriver 下载](https://chromedriver.chromium.org/downloads)页面下载匹配的驱动程序。
- 在 macOS 上,转到 **系统设置 > 隐私与安全性**,并允许驱动程序运行(如果被阻止)。
- 验证驱动程序二进制文件是否可执行(在 Linux/macOS 上运行 `chmod +x /path/to/driver`)。

## ElementNotInteractableException

This occurs when Selenium is unable to interact with a WebElement.

### Likely Cause

This usually occurs when one of three things happens:
* An element is not displayed
* An element is neither pointer nor keyboard interactable
* An element's center point can not be scrolled into the viewport

### Possible Solutions

Depending on the circumstance, there might _not_ be anything you can do. However, possible
things to try are setting [Explicit Waits]({{< ref "../waits#explicit-waits" >}}) or interacting
with another element/clicking a button on the page that might change state of the DOM.