File tree 2 files changed +4
-0
lines changed
javascript/node/selenium-webdriver
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,7 @@ const ErrorCode = {
405
405
NO_SUCH_COOKIE : 62 ,
406
406
UNABLE_TO_CAPTURE_SCREEN : 63 ,
407
407
ELEMENT_CLICK_INTERCEPTED : 64 ,
408
+ DETACHED_SHADOW_ROOT : 65 ,
408
409
METHOD_NOT_ALLOWED : 405 ,
409
410
}
410
411
@@ -437,6 +438,7 @@ const LEGACY_ERROR_CODE_TO_TYPE = new Map([
437
438
[ ErrorCode . NO_SUCH_COOKIE , NoSuchCookieError ] ,
438
439
[ ErrorCode . UNABLE_TO_CAPTURE_SCREEN , UnableToCaptureScreenError ] ,
439
440
[ ErrorCode . ELEMENT_CLICK_INTERCEPTED , ElementClickInterceptedError ] ,
441
+ [ ErrorCode . DETACHED_SHADOW_ROOT , DetachedShadowRootError ] ,
440
442
[ ErrorCode . METHOD_NOT_ALLOWED , UnsupportedOperationError ] ,
441
443
] )
442
444
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ describe('error', function () {
139
139
test ( 'unknown command' , error . UnknownCommandError )
140
140
test ( 'unknown method' , error . UnknownMethodError )
141
141
test ( 'unsupported operation' , error . UnsupportedOperationError )
142
+ test ( 'detached shadow root' , error . DetachedShadowRootError )
142
143
143
144
it ( 'leaves remoteStacktrace empty if not in encoding' , function ( ) {
144
145
assert . throws (
@@ -230,6 +231,7 @@ describe('error', function () {
230
231
test ( 'UNABLE_TO_CAPTURE_SCREEN' , error . UnableToCaptureScreenError )
231
232
test ( 'ELEMENT_CLICK_INTERCEPTED' , error . ElementClickInterceptedError )
232
233
test ( 'METHOD_NOT_ALLOWED' , error . UnsupportedOperationError )
234
+ test ( 'DETACHED_SHADOW_ROOT' , error . DetachedShadowRootError )
233
235
234
236
describe ( 'UnexpectedAlertOpenError' , function ( ) {
235
237
it ( 'includes alert text from the response object' , function ( ) {
You can’t perform that action at this time.
0 commit comments