Skip to content

Commit 7310c28

Browse files
authored
Add detection for frame not found (#443)
1 parent 25a92e7 commit 7310c28

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
@@ -161,6 +161,7 @@ Global Const $_WD_ErrorElementInvalid = "invalid argument"
161161
Global Const $_WD_ErrorElementIntercept = "element click intercepted"
162162
Global Const $_WD_ErrorElementNotInteract = "element not interactable"
163163
Global Const $_WD_ErrorWindowNotFound = "no such window"
164+
Global Const $_WD_ErrorFrameNotFound = "no such frame"
164165
Global Const $_WD_ErrorSessionNotCreated = "session not created"
165166

166167
Global Const $_WD_WinHTTPTimeoutMsg = "WinHTTP request timed out before Webdriver"
@@ -1757,7 +1758,7 @@ Func __WD_DetectError(ByRef $iErr, $vResult)
17571758
Case $_WD_ErrorTimeout
17581759
$iErr = $_WD_ERROR_Timeout
17591760

1760-
Case $_WD_ErrorElementNotFound, $_WD_ErrorElementStale, $_WD_ErrorShadowRootNotFound
1761+
Case $_WD_ErrorElementNotFound, $_WD_ErrorElementStale, $_WD_ErrorShadowRootNotFound, $_WD_ErrorFrameNotFound
17611762
$iErr = $_WD_ERROR_NoMatch
17621763

17631764
Case $_WD_ErrorElementInvalid

0 commit comments

Comments
 (0)