Skip to content

Commit

Permalink
[js] sendkeys error message fixed
Browse files Browse the repository at this point in the history
Co-authored-by: Puja Jagani <puja.jagani93@gmail.com>
  • Loading branch information
harshit-bs and pujagani committed Mar 30, 2022
1 parent da84700 commit 737cf02
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 @@ -2525,7 +2525,7 @@ class WebElement {
if (type === 'number') {
key = String(key)
} else if (type !== 'string') {
throw TypeError('each key must be a number of string; got ' + type)
throw TypeError('each key must be a number or string; got ' + type)
}

// The W3C protocol requires keys to be specified as an array where
Expand Down

0 comments on commit 737cf02

Please sign in to comment.