Skip to content

Commit 26565e0

Browse files
authored
Add detection for shadow root not found (#441)
1 parent 3ee9d8b commit 26565e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wd_core.au3

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Global Const $_WD_ErrorJavascript = "javascript error"
155155
Global Const $_WD_ErrorNoSuchAlert = "no such alert"
156156
Global Const $_WD_ErrorInvalidSelector = "invalid selector"
157157
Global Const $_WD_ErrorElementNotFound = "no such element"
158+
Global Const $_WD_ErrorShadowRootNotFound = "no such shadow root"
158159
Global Const $_WD_ErrorElementStale = "stale element reference"
159160
Global Const $_WD_ErrorElementInvalid = "invalid argument"
160161
Global Const $_WD_ErrorElementIntercept = "element click intercepted"
@@ -1749,7 +1750,7 @@ Func __WD_DetectError(ByRef $iErr, $vResult)
17491750
Case $_WD_ErrorTimeout
17501751
$iErr = $_WD_ERROR_Timeout
17511752

1752-
Case $_WD_ErrorElementNotFound, $_WD_ErrorElementStale
1753+
Case $_WD_ErrorElementNotFound, $_WD_ErrorElementStale, $_WD_ErrorShadowRootNotFound
17531754
$iErr = $_WD_ERROR_NoMatch
17541755

17551756
Case $_WD_ErrorElementInvalid

0 commit comments

Comments
 (0)