Skip to content

Commit

Permalink
[js] fix: return statement in submit() (SeleniumHQ#11883)
Browse files Browse the repository at this point in the history
  • Loading branch information
TamsilAmani authored Apr 18, 2023
1 parent 3818819 commit 395a926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/lib/webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -3013,7 +3013,7 @@ class WebElement {
"e.initEvent('submit', true, true);\n" +
'if (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\n'

this.driver_.executeScript(script, this)
return this.driver_.executeScript(script, this)
}

/**
Expand Down

0 comments on commit 395a926

Please sign in to comment.