@@ -332,6 +332,7 @@ Global Const $WD_Element_Invalid = "invalid argument"
332
332
Global Const $WD_Element_Intercept = " element click intercepted"
333
333
Global Const $WD_Element_NotInteract = " element not interactable"
334
334
335
+ Global Const $WD_WinHTTPTimeoutMsg = " WinHTTP request timed out before Webdriver"
335
336
#EndRegion Global Constants
336
337
337
338
@@ -1432,7 +1433,7 @@ Func __WD_Get($sURL)
1432
1433
Local $hOpen = _WinHttpOpen()
1433
1434
1434
1435
If $_WD_WINHTTP_TIMEOUTS Then
1435
- _WinHttpSetTimeouts($_WD_HTTPTimeOuts [0 ], $_WD_HTTPTimeOuts [1 ], $_WD_HTTPTimeOuts [2 ], $_WD_HTTPTimeOuts [3 ])
1436
+ _WinHttpSetTimeouts($hOpen , $ _WD_HTTPTimeOuts [0 ], $_WD_HTTPTimeOuts [1 ], $_WD_HTTPTimeOuts [2 ], $_WD_HTTPTimeOuts [3 ])
1436
1437
EndIf
1437
1438
1438
1439
; Get connection handle
@@ -1455,6 +1456,7 @@ Func __WD_Get($sURL)
1455
1456
1456
1457
If $iErr Then
1457
1458
$iResult = $_WD_ERROR_SendRecv
1459
+ $sResponseText = $WD_WinHTTPTimeoutMsg
1458
1460
ElseIf $_WD_HTTPRESULT = $HTTP_STATUS_SERVER_ERROR Then
1459
1461
$iResult = $_WD_ERROR_Timeout
1460
1462
EndIf
@@ -1517,7 +1519,7 @@ Func __WD_Post($sURL, $sData)
1517
1519
Local $hOpen = _WinHttpOpen()
1518
1520
1519
1521
If $_WD_WINHTTP_TIMEOUTS Then
1520
- _WinHttpSetTimeouts($_WD_HTTPTimeOuts [0 ], $_WD_HTTPTimeOuts [1 ], $_WD_HTTPTimeOuts [2 ], $_WD_HTTPTimeOuts [3 ])
1522
+ _WinHttpSetTimeouts($hOpen , $ _WD_HTTPTimeOuts [0 ], $_WD_HTTPTimeOuts [1 ], $_WD_HTTPTimeOuts [2 ], $_WD_HTTPTimeOuts [3 ])
1521
1523
EndIf
1522
1524
1523
1525
; Get connection handle
@@ -1540,6 +1542,7 @@ Func __WD_Post($sURL, $sData)
1540
1542
1541
1543
If $iErr Then
1542
1544
$iResult = $_WD_ERROR_SendRecv
1545
+ $sResponseText = $WD_WinHTTPTimeoutMsg
1543
1546
ElseIf $_WD_HTTPRESULT = $HTTP_STATUS_SERVER_ERROR Then
1544
1547
$iResult = $_WD_ERROR_Timeout
1545
1548
EndIf
@@ -1598,7 +1601,7 @@ Func __WD_Delete($sURL)
1598
1601
Local $hOpen = _WinHttpOpen()
1599
1602
1600
1603
If $_WD_WINHTTP_TIMEOUTS Then
1601
- _WinHttpSetTimeouts($_WD_HTTPTimeOuts [0 ], $_WD_HTTPTimeOuts [1 ], $_WD_HTTPTimeOuts [2 ], $_WD_HTTPTimeOuts [3 ])
1604
+ _WinHttpSetTimeouts($hOpen , $ _WD_HTTPTimeOuts [0 ], $_WD_HTTPTimeOuts [1 ], $_WD_HTTPTimeOuts [2 ], $_WD_HTTPTimeOuts [3 ])
1602
1605
EndIf
1603
1606
1604
1607
; Get connection handle
@@ -1621,6 +1624,7 @@ Func __WD_Delete($sURL)
1621
1624
1622
1625
If $iErr Then
1623
1626
$iResult = $_WD_ERROR_SendRecv
1627
+ $sResponseText = $WD_WinHTTPTimeoutMsg
1624
1628
ElseIf $_WD_HTTPRESULT = $HTTP_STATUS_SERVER_ERROR Then
1625
1629
$iResult = $_WD_ERROR_Timeout
1626
1630
EndIf
0 commit comments