From 62add12a6f8f68c7b522a3f3b0b2fab17c570398 Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Tue, 24 Sep 2024 15:07:43 -0400 Subject: [PATCH] Added ElementNotVisibleException --- .../troubleshooting/errors/_index.en.md | 16 ++++++++++++++++ .../troubleshooting/errors/_index.ja.md | 16 ++++++++++++++++ .../troubleshooting/errors/_index.pt-br.md | 16 ++++++++++++++++ .../troubleshooting/errors/_index.zh-cn.md | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md index 5d675125e850..11debdc09163 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md @@ -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.) \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md index 7e9c9709d67b..009aa6d216c4 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md @@ -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.) \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md index 571b54e61f76..e234f6e82ff9 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md @@ -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.) \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.zh-cn.md b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.zh-cn.md index b88ec8355af3..40904cfb1115 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.zh-cn.md @@ -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.) \ No newline at end of file