Skip to content

Commit 6c27955

Browse files
authored
Update by.js: Add forgotten RelativeBy in check options (#12289)
1 parent 2fd7dd7 commit 6c27955

File tree

1 file changed

+1
-1
lines changed
  • javascript/node/selenium-webdriver/lib

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class RelativeBy {
396396
* strategy.
397397
*/
398398
function check(locator) {
399-
if (locator instanceof By || typeof locator === 'function') {
399+
if (locator instanceof By || locator instanceof RelativeBy || typeof locator === 'function') {
400400
return locator
401401
}
402402

0 commit comments

Comments
 (0)