Skip to content

Commit 5147420

Browse files
committed
Tuning Atest
1 parent 3391ab1 commit 5147420

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

atest/acceptance/keywords/javascript.robot

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,8 @@ Execute Javascript With ARGUMENTS Marker Only
6262
Alert Should Be Present 123 timeout=10 s
6363

6464
Execute Javascript With ARGUMENTS Marker And WebElement
65-
[Documentation]
66-
... Checks if the body (WebElement)
67-
... is parsed correctly as script argument
68-
... then compare its tagName to 'body'
69-
${body_webelement} Get WebElement css:body
70-
${tag_name} Execute Javascript
65+
${body_webelement} = Get WebElement css:body
66+
${tag_name} = Execute Javascript
7167
... return arguments[0].tagName;
7268
... ARGUMENTS
7369
... ${body_webelement}

src/SeleniumLibrary/keywords/javascript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class JavaScriptKeywords(LibraryComponent):
3030
arg_marker = "ARGUMENTS"
3131

3232
@keyword
33-
def execute_javascript(self, *code: Union[WebElement, str]) -> Any:
33+
def execute_javascript(self, *code: Union[WebElement, str]) -> Any:
3434
"""Executes the given JavaScript code with possible arguments.
3535
3636
``code`` may be divided into multiple cells in the test data and
@@ -73,7 +73,7 @@ def execute_javascript(self, *code: Union[WebElement, str]) -> Any:
7373
return self.driver.execute_script(js_code, *js_args)
7474

7575
@keyword
76-
def execute_async_javascript(self, *code: Union[WebElement, str]) -> Any:
76+
def execute_async_javascript(self, *code: Union[WebElement, str]) -> Any:
7777
"""Executes asynchronous JavaScript code with possible arguments.
7878
7979
Similar to `Execute Javascript` except that scripts executed with

0 commit comments

Comments
 (0)