Skip to content

Commit 737cf02

Browse files
harshit-bspujagani
andauthored
[js] sendkeys error message fixed
Co-authored-by: Puja Jagani <[email protected]>
1 parent da84700 commit 737cf02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2525,7 +2525,7 @@ class WebElement {
25252525
if (type === 'number') {
25262526
key = String(key)
25272527
} else if (type !== 'string') {
2528-
throw TypeError('each key must be a number of string; got ' + type)
2528+
throw TypeError('each key must be a number or string; got ' + type)
25292529
}
25302530

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

0 commit comments

Comments
 (0)