From 91ce3b5d9ac885924c1593244acfba60f5843f5a Mon Sep 17 00:00:00 2001 From: AdamPDotty <81536237+AdamPDotty@users.noreply.github.com> Date: Thu, 29 Jun 2023 13:15:12 +0200 Subject: [PATCH] Update by.js: Add forgotten RelativeBy in check options --- javascript/node/selenium-webdriver/lib/by.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/node/selenium-webdriver/lib/by.js b/javascript/node/selenium-webdriver/lib/by.js index 9dcad40e73d9d..fcc4304780d9f 100644 --- a/javascript/node/selenium-webdriver/lib/by.js +++ b/javascript/node/selenium-webdriver/lib/by.js @@ -396,7 +396,7 @@ class RelativeBy { * strategy. */ function check(locator) { - if (locator instanceof By || typeof locator === 'function') { + if (locator instanceof By || locator instanceof RelativeBy || typeof locator === 'function') { return locator }