Skip to content

Commit

Permalink
upgraded headers to reflect error messages (#1963)[deploy site]
Browse files Browse the repository at this point in the history
Co-authored-by: Sri Harsha <[email protected]>
  • Loading branch information
shbenzer and harsha509 authored Sep 26, 2024
1 parent 71e6c1e commit 744290a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
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

0 comments on commit 744290a

Please sign in to comment.