We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd7dd7 commit 6c27955Copy full SHA for 6c27955
javascript/node/selenium-webdriver/lib/by.js
@@ -396,7 +396,7 @@ class RelativeBy {
396
* strategy.
397
*/
398
function check(locator) {
399
- if (locator instanceof By || typeof locator === 'function') {
+ if (locator instanceof By || locator instanceof RelativeBy || typeof locator === 'function') {
400
return locator
401
}
402
0 commit comments