Skip to content

Commit d82c9e8

Browse files
committed
Improving likely clauses for InvalidSelectorException
Closes SeleniumHQ#1895 [deploy site]
1 parent 900ea71 commit d82c9e8

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ CSS and XPath Selectors are sometimes difficult to get correct.
1818

1919
### Likely Cause
2020

21-
The CSS or XPath selector you are trying to use has invalid characters or an invalid query.
21+
* The CSS or XPath selector you are trying to use has invalid characters or an invalid query.
22+
* You may have placed an XPATH value as a parameter to a CSS selector, or vice versa.
23+
* You may have used a CSS or XPATH selector as a parameter to an ID selector.
2224

2325
### Possible Solutions
2426

website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.ja.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ CSS and XPath Selectors are sometimes difficult to get correct.
1212

1313
### Likely Cause
1414

15-
The CSS or XPath selector you are trying to use has invalid characters or an invalid query.
15+
* The CSS or XPath selector you are trying to use has invalid characters or an invalid query.
16+
* You may have placed an XPATH value as a parameter to a CSS selector, or vice versa.
17+
* You may have used a CSS or XPATH selector as a parameter to an ID selector.
1618

1719
### Possible Solutions
1820

website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.pt-br.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ CSS and XPath Selectors are sometimes difficult to get correct.
1212

1313
### Likely Cause
1414

15-
The CSS or XPath selector you are trying to use has invalid characters or an invalid query.
15+
* The CSS or XPath selector you are trying to use has invalid characters or an invalid query.
16+
* You may have placed an XPATH value as a parameter to a CSS selector, or vice versa.
17+
* You may have used a CSS or XPATH selector as a parameter to an ID selector.
1618

1719
### Possible Solutions
1820

website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.zh-cn.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ description: >
1212

1313
### 潜在原因
1414

15-
您尝试使用的CSS或XPath选择器包含无效字符或无效查询。
15+
* The CSS or XPath selector you are trying to use has invalid characters or an invalid query.
16+
* You may have placed an XPATH value as a parameter to a CSS selector, or vice versa.
17+
* You may have used a CSS or XPATH selector as a parameter to an ID selector.
1618

1719
### 可行方案
1820

0 commit comments

Comments
 (0)