Skip to content

Commit fbd15da

Browse files
committed
Updated older RETURN syntax to newer one
1 parent d1b21d3 commit fbd15da

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

atest/acceptance/locators/custom.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ Teardown Custom Locator
5555
Custom Locator Strategy
5656
[Arguments] ${browser} ${locator} ${tag} ${constraints}
5757
${element}= Execute Javascript return window.document.getElementById('${locator}') || [];
58-
[Return] ${element}
58+
RETURN ${element}

atest/acceptance/resource.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Open Browser To Start Page Without Testing Default Options
2424
... desired_capabilities=${DESIRED_CAPABILITIES} alias=${alias}
2525
${orig speed} = Set Selenium Speed ${SPEED}
2626
${orig timeout} = Set Selenium Timeout 10 seconds
27-
[Return] ${orig speed} 5 seconds
27+
RETURN ${orig speed} 5 seconds
2828

2929
Cannot Be Executed In IE
3030
[Documentation] Cannot Be Executed In IE

src/SeleniumLibrary/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class SeleniumLibrary(DynamicCore):
238238
239239
| Custom Locator Strategy | [Arguments] | ${browser} | ${locator} | ${tag} | ${constraints} |
240240
| | ${element}= | Execute Javascript | return window.document.getElementById('${locator}'); |
241-
| | [Return] | ${element} |
241+
| | RETURN | ${element} |
242242
243243
This keyword is a reimplementation of the basic functionality of the
244244
``id`` locator where ``${browser}`` is a reference to a WebDriver

utest/test/api/approved_files/PluginDocumentation.test_many_plugins.approved.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ a WebElement that should be acted on:
177177

178178
| Custom Locator Strategy | [Arguments] | ${browser} | ${locator} | ${tag} | ${constraints} |
179179
| | ${element}= | Execute Javascript | return window.document.getElementById('${locator}'); |
180-
| | [Return] | ${element} |
180+
| | RETURN | ${element} |
181181

182182
This keyword is a reimplementation of the basic functionality of the
183183
``id`` locator where ``${browser}`` is a reference to a WebDriver

0 commit comments

Comments
 (0)