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 13 commits into
base: trunk
Choose a base branch
from
Open
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 @@ -179,3 +179,19 @@ This exception occurs when Selenium tries to interact with an element that is no
2. Ensure locators uniquely identify the intended element to avoid incorrect matches.
3. Check if the element is visible on the page before interacting with it. Use scrolling to bring the element into view, if required.
4. Use explicit waits to ensure the element is interactable before performing actions.

## 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 @@ -175,3 +175,20 @@ This exception occurs when Selenium tries to interact with an element that is no
2. Ensure locators uniquely identify the intended element to avoid incorrect matches.
3. Check if the element is visible on the page before interacting with it. Use scrolling to bring the element into view, if required.
4. Use explicit waits to ensure the element is interactable before performing actions.

## 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 @@ -175,3 +175,19 @@ This exception occurs when Selenium tries to interact with an element that is no
2. Ensure locators uniquely identify the intended element to avoid incorrect matches.
3. Check if the element is visible on the page before interacting with it. Use scrolling to bring the element into view, if required.
4. Use explicit waits to ensure the element is interactable before performing actions.

## 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 @@ -178,3 +178,19 @@ Actions class with `Actions.moveToElement(element)`.
2. 确保定位器唯一标识目标元素,以避免错误匹配。
3. 在与元素交互之前,检查其是否在页面上可见。如果需要,将元素滚动到视图中。
4. 使用显式等待以确保元素在执行操作前可交互。

## 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.)
Loading