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 #1945

Closed
wants to merge 5 commits into from
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 @@ -53,15 +53,15 @@ Elements do not get relocated automatically; the driver creates a reference ID f
has a particular place it expects to find it in the DOM. If it can not find the element
in the current DOM, any action using that element will result in this exception.

### Common Causes
### Likely Cause

This can happen when:

* You have refreshed the page, or the DOM of the page has dynamically changed.
* You have navigated to a different page.
* You have switched to another window or into or out of a frame or iframe.

### Common Solutions
### Possible Solutions

**The DOM has changed**

Expand Down Expand Up @@ -104,8 +104,26 @@ Sometimes the session you're trying to access is different than what's currently

### Likely Cause

This usually occurs when the session has been deleted (e.g. `driver.quit()`) or if the session has changed, like when the last tab/browser has closed (e.g. `driver.close()`)
This usually occurs when the session has been deleted (e.g. `driver.quit()`) or if the session has changed,
like when the last tab/browser has closed (e.g. `driver.close()`)

### 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

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.
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 @@ -47,15 +47,15 @@ Elements do not get relocated automatically; the driver creates a reference ID f
has a particular place it expects to find it in the DOM. If it can not find the element
in the current DOM, any action using that element will result in this exception.

### Common Causes
### Likely Cause

This can happen when:

* You have refreshed the page, or the DOM of the page has dynamically changed.
* You have navigated to a different page.
* You have switched to another window or into or out of a frame or iframe.

### Common Solutions
### Likely Solutions

**The DOM has changed**

Expand Down Expand Up @@ -98,8 +98,26 @@ Sometimes the session you're trying to access is different than what's currently

### Likely Cause

This usually occurs when the session has been deleted (e.g. `driver.quit()`) or if the session has changed, like when the last tab/browser has closed (e.g. `driver.close()`)
This usually occurs when the session has been deleted (e.g. `driver.quit()`) or if the session has changed,
like when the last tab/browser has closed (e.g. `driver.close()`)

### 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

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.
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 @@ -47,15 +47,15 @@ Elements do not get relocated automatically; the driver creates a reference ID f
has a particular place it expects to find it in the DOM. If it can not find the element
in the current DOM, any action using that element will result in this exception.

### Common Causes
### Likely Cause

This can happen when:

* You have refreshed the page, or the DOM of the page has dynamically changed.
* You have navigated to a different page.
* You have switched to another window or into or out of a frame or iframe.

### Common Solutions
### Possible Solutions

**The DOM has changed**

Expand Down Expand Up @@ -98,8 +98,26 @@ Sometimes the session you're trying to access is different than what's currently

### Likely Cause

This usually occurs when the session has been deleted (e.g. `driver.quit()`) or if the session has changed, like when the last tab/browser has closed (e.g. `driver.close()`)
This usually occurs when the session has been deleted (e.g. `driver.quit()`) or if the session has changed,
like when the last tab/browser has closed (e.g. `driver.close()`)

### 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

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.
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 @@ -107,3 +107,19 @@ WebDriver并不会自动重新定位,

### 可能的解决方案
检查脚本中是否有 `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.)