Skip to content

upgraded headers to reflect error messages #1963

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

Merged
merged 3 commits into from
Sep 26, 2024
Merged
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 @@ -12,7 +12,7 @@ aliases: [
]
---

## Invalid Selector Exception
## InvalidSelectorException

CSS and XPath Selectors are sometimes difficult to get correct.

Expand All @@ -29,7 +29,7 @@ Run your selector through a validator service:
Or use a browser extension to get a known good value:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## No Such Element Exception
## NoSuchElementException

The element can not be found at the exact moment you attempted to locate it.

Expand All @@ -46,7 +46,7 @@ The element can not be found at the exact moment you attempted to locate it.
* Update the locator with the browser's devtools console or use a browser extension like:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## Stale Element Reference Exception
## StaleElementReferenceException

An element goes stale when it was previously located, but can not be currently accessed.
Elements do not get relocated automatically; the driver creates a reference ID for the element and
Expand Down Expand Up @@ -132,7 +132,7 @@ In instances where the element is out of view, but Selenium still registers the
method to execute a javascript function to scroll (e.g. `WebDriver.executeScript('window.scrollBy(0,-250)')`)
or you can utilize the Actions class with `Actions.moveToElement(element)`.

## Invalid SessionId Exception
## InvalidSessionIdException

Sometimes the session you're trying to access is different than what's currently available

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
How to get deal with various problems in your Selenium code.
---

## Invalid Selector Exception
## InvalidSelectorException

CSS and XPath Selectors are sometimes difficult to get correct.

Expand All @@ -23,7 +23,7 @@ Run your selector through a validator service:
Or use a browser extension to get a known good value:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## No Such Element Exception
## NoSuchElementException

The element can not be found at the exact moment you attempted to locate it.

Expand All @@ -40,7 +40,7 @@ The element can not be found at the exact moment you attempted to locate it.
* Update the locator with the browser's devtools console or use a browser extension like:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## Stale Element Reference Exception
## StaleElementReferenceException

An element goes stale when it was previously located, but can not be currently accessed.
Elements do not get relocated automatically; the driver creates a reference ID for the element and
Expand Down Expand Up @@ -128,7 +128,7 @@ In instances where the element is out of view, but Selenium still registers the
method to execute a javascript function to scroll (e.g. `WebDriver.executeScript('window.scrollBy(0,-250)')`)
or you can utilize the Actions class with `Actions.moveToElement(element)`.

## Invalid SessionId Exception
## InvalidSessionIdException

Sometimes the session you're trying to access is different than what's currently available

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
How to get deal with various problems in your Selenium code.
---

## Invalid Selector Exception
## InvalidSelectorException

CSS and XPath Selectors are sometimes difficult to get correct.

Expand All @@ -23,7 +23,7 @@ Run your selector through a validator service:
Or use a browser extension to get a known good value:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## No Such Element Exception
## NoSuchElementException

The element can not be found at the exact moment you attempted to locate it.

Expand All @@ -40,7 +40,7 @@ The element can not be found at the exact moment you attempted to locate it.
* Update the locator with the browser's devtools console or use a browser extension like:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## Stale Element Reference Exception
## StaleElementReferenceException

An element goes stale when it was previously located, but can not be currently accessed.
Elements do not get relocated automatically; the driver creates a reference ID for the element and
Expand Down Expand Up @@ -130,7 +130,7 @@ In instances where the element is out of view, but Selenium still registers the
(e.g. `WebDriver.executeScript('window.scrollBy(0,-250)')`) or you can utilize the Actions
class with `Actions.moveToElement(element)`.

## Invalid SessionId Exception
## InvalidSessionIdException

Sometimes the session you're trying to access is different than what's currently available

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
如何处理Selenium代码中的各种问题.
---

## 无效选择器的异常 (Invalid Selector Exception)
## 无效选择器的异常 (InvalidSelectorException)

某些时候难以获得正确的CSS以及XPath选择器。

Expand All @@ -23,7 +23,7 @@ description: >
或者使用浏览器扩展程序来获取已知的良好值:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## 没有这样元素的异常 (No Such Element Exception)
## 没有这样元素的异常 (NoSuchElementException)

在您尝试找到该元素的当前时刻无法定位元素。

Expand All @@ -40,7 +40,7 @@ description: >
* 使用浏览器的devtools控制台更新定位器或使用浏览器扩展程序,例如:
* [SelectorsHub](https://selectorshub.com/selectorshub/)

## 过时元素引用的异常 (Stale Element Reference Exception)
## 过时元素引用的异常 (StaleElementReferenceException)

当成功定位到元素时,
WebDriver会为其设置一个引用ID作为标记,
Expand Down Expand Up @@ -137,7 +137,7 @@ In instances where the element is out of view, but Selenium still registers the
(e.g. `WebDriver.executeScript('window.scrollBy(0,-250)')`) or you can utilize the
Actions class with `Actions.moveToElement(element)`.

## 无效 SessionId 异常
## 无效SessionId异常
有时您尝试访问的会话与当前可用的会话不同。

### 可能原因
Expand Down
Loading