Skip to content

Commit 20b90cb

Browse files
committed
[js] add ErrorCode for DetachedShadowRootError
1 parent d52985d commit 20b90cb

File tree

1 file changed

+2
-0
lines changed
  • javascript/node/selenium-webdriver/lib

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ const ErrorCode = {
405405
NO_SUCH_COOKIE: 62,
406406
UNABLE_TO_CAPTURE_SCREEN: 63,
407407
ELEMENT_CLICK_INTERCEPTED: 64,
408+
DETACHED_SHADOW_ROOT: 65,
408409
METHOD_NOT_ALLOWED: 405,
409410
}
410411

@@ -437,6 +438,7 @@ const LEGACY_ERROR_CODE_TO_TYPE = new Map([
437438
[ErrorCode.NO_SUCH_COOKIE, NoSuchCookieError],
438439
[ErrorCode.UNABLE_TO_CAPTURE_SCREEN, UnableToCaptureScreenError],
439440
[ErrorCode.ELEMENT_CLICK_INTERCEPTED, ElementClickInterceptedError],
441+
[ErrorCode.DETACHED_SHADOW_ROOT, DetachedShadowRootError],
440442
[ErrorCode.METHOD_NOT_ALLOWED, UnsupportedOperationError],
441443
])
442444

0 commit comments

Comments
 (0)