Skip to content

Commit 5efbc6b

Browse files
DanielPBakaaltat
authored andcommitted
Fixed documentation for custom locator example, so argument lines up with usage (#1175)
* Fixed documentation for custom locator example, so argument lines up with usage.
1 parent 03a5c63 commit 5efbc6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SeleniumLibrary/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ class SeleniumLibrary(DynamicCore):
195195
locators is a two part process. First, create a keyword that returns
196196
a WebElement that should be acted on:
197197
198-
| Custom Locator Strategy | [Arguments] | ${browser} | ${strategy} | ${tag} | ${constraints} |
199-
| | ${element}= | Execute Javascript | return window.document.getElementById('${criteria}'); |
198+
| Custom Locator Strategy | [Arguments] | ${browser} | ${locator} | ${tag} | ${constraints} |
199+
| | ${element}= | Execute Javascript | return window.document.getElementById('${locator}'); |
200200
| | [Return] | ${element} |
201201
202202
This keyword is a reimplementation of the basic functionality of the
203203
``id`` locator where ``${browser}`` is a reference to a WebDriver
204-
instance and ``${strategy}`` is name of the locator strategy. To use
204+
instance and ``${locator}`` is name of the locator strategy. To use
205205
this locator it must first be registered by using the
206206
`Add Location Strategy` keyword:
207207

0 commit comments

Comments
 (0)