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 ElementNotVisibleException to Error Documentation #1971

Open
wants to merge 10 commits into
base: trunk
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,19 @@ like when the last tab/browser has closed (e.g. `driver.close()`)

Check your script for instances of `driver.close()` and `driver.quit()`, and any other possible causes
of closed tabs/browsers. It could be that you are locating an element before you should/can.

## ElementNotVisibleException

This exception is thrown when the element you are trying to interact with _is_ present in the DOM, but is not visible.

### Likely Cause

This can occur in several situations:
* Another element is blocking your intended element
* The element is disabled/invisible to the user

### Possible Solutions

This issue cannot always be resolved on the user's end, however when it can it is usually solved by the following:
using an explicit wait, or interacting with the page in such a way to make the element visible
(scrolling, clicking a button, etc.)
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,19 @@ like when the last tab/browser has closed (e.g. `driver.close()`)

Check your script for instances of `driver.close()` and `driver.quit()`, and any other possible causes of closed
tabs/browsers. It could be that you are locating an element before you should/can.

## ElementNotVisibleException

This exception is thrown when the element you are trying to interact with _is_ present in the DOM, but is not visible.

### Likely Cause

This can occur in several situations:
* Another element is blocking your intended element
* The element is disabled/invisible to the user

### Possible Solutions

This issue cannot always be resolved on the user's end, however when it can it is usually solved by the following:
using an explicit wait, or interacting with the page in such a way to make the element visible
(scrolling, clicking a button, etc.)
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,19 @@ This usually occurs when the session has been deleted (e.g. `driver.quit()`) or
### Possible Solutions

Check your script for instances of `driver.close()` and `driver.quit()`, and any other possible causes of closed tabs/browsers. It could be that you are locating an element before you should/can.

## ElementNotVisibleException

This exception is thrown when the element you are trying to interact with _is_ present in the DOM, but is not visible.

### Likely Cause

This can occur in several situations:
* Another element is blocking your intended element
* The element is disabled/invisible to the user

### Possible Solutions

This issue cannot always be resolved on the user's end, however when it can it is usually solved by the following:
using an explicit wait, or interacting with the page in such a way to make the element visible
(scrolling, clicking a button, etc.)
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,19 @@ Actions class with `Actions.moveToElement(element)`.

### 可能的解决方案
检查脚本中是否有 `driver.close()` 和 `driver.quit()` 的实例,以及其他可能导致标签页/浏览器关闭的原因。可能是您在应该/能够定位元素之前就尝试定位了该元素。

## ElementNotVisibleException

This exception is thrown when the element you are trying to interact with _is_ present in the DOM, but is not visible.

### Likely Cause

This can occur in several situations:
* Another element is blocking your intended element
* The element is disabled/invisible to the user

### Possible Solutions

This issue cannot always be resolved on the user's end, however when it can it is usually solved by the following:
using an explicit wait, or interacting with the page in such a way to make the element visible
(scrolling, clicking a button, etc.)