Skip to content

Commit 17b2eab

Browse files
committed
Fixed doc formating issue within xpath examples
Just add a spoace between the locator strategy and the locator string and it resolves the auto-conversion to url/uri for the xpath examples.
1 parent ce9d0ec commit 17b2eab

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/SeleniumLibrary.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/SeleniumLibrary/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ class SeleniumLibrary(DynamicCore):
208208
are based on Selenium API, like `xpath` or `css`, but example chaining is not supported by `sizzle` or `jquery
209209
210210
Examples:
211-
| `Click Element` | css:.bar >> xpath://a | # To find a link which is present after an element with class "bar" |
211+
| `Click Element` | css:.bar >> xpath: //a | # To find a link which is present after an element with class "bar" |
212212
213213
List examples:
214-
| ${locator_list} = | `Create List` | css:div#div_id | xpath://*[text(), " >> "] |
215-
| `Page Should Contain Element` | ${locator_list} | | |
216-
| ${element} = | Get WebElement | xpath://*[text(), " >> "] | |
217-
| ${locator_list} = | `Create List` | css:div#div_id | ${element} |
218-
| `Page Should Contain Element` | ${locator_list} | | |
214+
| ${locator_list} = | `Create List` | css:div#div_id | xpath: //*[text(), " >> "] |
215+
| `Page Should Contain Element` | ${locator_list} | | |
216+
| ${element} = | Get WebElement | xpath: //*[text(), " >> "] | |
217+
| ${locator_list} = | `Create List` | css:div#div_id | ${element } |
218+
| `Page Should Contain Element` | ${locator_list} | | |
219219
220220
Chaining locators in new in SeleniumLibrary 5.0
221221

0 commit comments

Comments
 (0)