Skip to content

Commit 423ebb8

Browse files
authored
Merge pull request #1971 from robotframework/fix-doc-formating-issues
Fixed doc formating issue within xpath examples
2 parents ce9d0ec + 17b2eab commit 423ebb8

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)