Skip to content

__WD_Error() minimizing the amount of messages #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 73 commits into from
Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from 69 commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
60a699c
__WD_Error() minimizing the number of messages
mlipok Apr 10, 2022
06c2c55
small changes
mlipok Apr 11, 2022
8212d19
further refactor
mlipok Apr 11, 2022
916d558
Merge branch 'Danp2:master' into patch-6
mlipok Apr 15, 2022
42a360d
core: __WD_Error() usage reviewed
mlipok Apr 15, 2022
38ce051
_WD_DeleteSession small refactor
mlipok Apr 15, 2022
995ec6b
CORE: removing redundant HTTPStatus
mlipok Apr 15, 2022
faf73a1
HELPER: removing redundant HTTPStatus
mlipok Apr 15, 2022
b173ed9
CORE: _WD_FindElement
mlipok Apr 15, 2022
fc5a2c9
HELPER: _WD_WaitElement
mlipok Apr 15, 2022
c3379e9
CORE: __WD_Error() HTTPStatus
mlipok Apr 18, 2022
f98d92f
HEPLER: __WD_Error() HTTPStatus
mlipok Apr 18, 2022
61c1b5a
Correct __WD_Error
Danp2 Apr 18, 2022
9362392
_WD_WaitElement - prevent multiple errors
mlipok Apr 18, 2022
fc2e337
$_WD_DEBUG_Saved out of While Wend loop
mlipok Apr 18, 2022
37e04f3
__WD_Error EXT fixed
mlipok Apr 18, 2022
751d873
_WD_DeleteSession return 0/1
mlipok Apr 18, 2022
a6e6359
_WD_LinkClickByText added $sMessage
mlipok Apr 18, 2022
56faa44
$iReturn 0/1 fix
mlipok Apr 18, 2022
639e76f
Merge branch 'master' into patch-6
Danp2 Apr 18, 2022
2606123
Comments + Small refactor
mlipok Apr 21, 2022
ff04cca
CORE: Ternary - refactoring
mlipok Apr 21, 2022
32a89a2
HELPER: Ternary - refactoring
mlipok Apr 21, 2022
896748b
_WD_SelectFiles $sMessage
mlipok Apr 21, 2022
6382e66
_WD_ElementOptionSelect Extended removed
mlipok Apr 21, 2022
efe7fdb
_WD_jQuerify Extended removed
mlipok Apr 21, 2022
2dcda70
$_WD_DEBUG_Info usage > $_WD_DEBUG_Full
mlipok Apr 21, 2022
5cdcdcb
__WD_Error square bracket with Error/Extended
mlipok Apr 21, 2022
53458e8
Standardize message format
Danp2 Apr 23, 2022
2c16025
$_WD_ERROR_ enum description
mlipok Apr 25, 2022
71005a7
_WD_Option $sMessage
mlipok Apr 25, 2022
aaca3eb
__WD_Get $sMessage refactoring
mlipok Apr 26, 2022
7057a26
Enum descriptions
Danp2 Apr 26, 2022
2f15f7a
Merge branch 'master' into patch-6
mlipok May 8, 2022
0d780b2
__WD_Error() $iExt Default behavior
mlipok May 13, 2022
d1a8cb3
__WD_Get ResponseText $_WD_RESPONSE_TRIM
mlipok May 15, 2022
4e401aa
Global $_WD_RESPONSE_TRIM = -1
mlipok May 15, 2022
6e59262
_WD_CDPExecuteCommand: New trimming logic
Danp2 May 28, 2022
d88e56d
Merge branch 'master' into patch-6
Danp2 May 28, 2022
4780aad
wd_helper.au3 - tidied
mlipok May 29, 2022
9940645
__WD_MessageCreator
mlipok May 29, 2022
0b36747
Merge branch 'Danp2:master' into patch-6
mlipok May 30, 2022
cc7f880
UserTesting() improved
mlipok May 30, 2022
eb54eb6
$sParameters + __WD_MessageCreator()
mlipok May 30, 2022
4a5e9e1
$sParameters + _WD_WaitElement show only once
mlipok May 30, 2022
5b8c2bb
Redundant URL when $_WD_DEBUG_Info
mlipok May 30, 2022
e9579cd
Check length before truncating response string
Danp2 May 31, 2022
93162d4
Merge
Danp2 May 31, 2022
dbfd4e8
_WD_Option $sParameters usage
mlipok May 31, 2022
b56612b
_WD_Startup: No message on success
Danp2 May 31, 2022
5e5123e
Refactor _WD_CreateSession
Danp2 May 31, 2022
cc3eb6f
Add Const keyword
Danp2 May 31, 2022
d7f6dd2
capitalization
mlipok May 31, 2022
4aa9b15
__WD_MessageCreator $sData
mlipok May 31, 2022
e481068
Only update on success
Danp2 Jun 1, 2022
736cd80
Merge branch 'patch-6' of https://github.com/mlipok/au3webdriver into…
Danp2 Jun 1, 2022
b719bfd
_WD_FindElement() $bCheckNoMatch Error handling
mlipok Jun 5, 2022
2a6080d
_WD_WaitElement() should exits on error
mlipok Jun 5, 2022
b1cfd23
prevent multiple errors from _WD_FindElement()
mlipok Jun 9, 2022
7d532fa
_WD_WaitElement - $_WD_DEBUG_Full and $sParameters
mlipok Jun 9, 2022
cfb9821
WD_ElementAction - $bParameters_Option
mlipok Jun 10, 2022
bb8a23a
Update header / revise comments
Danp2 Jun 11, 2022
91dd97a
_WD_Navigate #forceref removal
mlipok Jun 12, 2022
f5671d5
comments moved because of tidy
mlipok Jun 12, 2022
74986cd
Parameter logging for _WD_Action, _WD_Window
Danp2 Jun 24, 2022
f78e30d
_WD_ElementAction: Mask option param when
Danp2 Jun 24, 2022
9da3264
Refactor _WD_Attach
Danp2 Jun 25, 2022
ec5a3cf
Improve logging
Danp2 Jun 25, 2022
c581e7f
_WD_LoadWait...
mlipok Jun 28, 2022
2c552e5
_WD_LoadWait prevent multiple errors
mlipok Jul 1, 2022
7d2283d
_WD_LoadWait Prevent logging part 2
mlipok Jul 2, 2022
0feeadf
_WD_Navigate: Log parameters
Danp2 Jul 4, 2022
ae2f083
formatting
Danp2 Jul 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions wd_cdp.au3
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Func _WD_CDPExecuteCommand($sSession, $sCommand, $oParams, $sWebSocketURL = Defa

; Websocket version
Local $hOpen = 0, $hConnect = 0, $hRequest = 0, $hWebSocket = 0
Local $aURL, $fStatus, $sErrText
Local $aURL, $fStatus, $sErrText, $sMessage = ""
Local $iBufferLen = 1024, $tBuffer = 0, $bRecv = Binary(""), $sRecv
Local $iBytesRead = 0, $iBufferType = 0
Local $iStatus = 0, $iReasonLengthConsumed = 0
Expand Down Expand Up @@ -226,7 +226,14 @@ Func _WD_CDPExecuteCommand($sSession, $sCommand, $oParams, $sWebSocketURL = Defa
If $iErr Then
Return SetError(__WD_Error($sFuncName, $iErr, $sErrText), 0, "")
EndIf
Local $sMessage = (($sRecv) ? (" : " & StringLeft($sRecv, $_WD_RESPONSE_TRIM) & "...") : (""))

If ($sRecv) Then
If $_WD_RESPONSE_TRIM <> -1 And StringLen(sRecv) > $_WD_RESPONSE_TRIM Then
$sMessage &= " ResponseText=" & StringLeft($sRecv, $_WD_RESPONSE_TRIM) & "..."
Else
$sMessage &= " ResponseText=" & $sRecv
EndIf
EndIf
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_Success, $sMessage), 0, $sRecv)
EndFunc ;==>_WD_CDPExecuteCommand

Expand Down
Loading