Skip to content

Commit 395a926

Browse files
authored
[js] fix: return statement in submit() (#11883)
1 parent 3818819 commit 395a926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/node/selenium-webdriver/lib/webdriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3013,7 +3013,7 @@ class WebElement {
30133013
"e.initEvent('submit', true, true);\n" +
30143014
'if (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\n'
30153015

3016-
this.driver_.executeScript(script, this)
3016+
return this.driver_.executeScript(script, this)
30173017
}
30183018

30193019
/**

0 commit comments

Comments
 (0)