removed discord messages for repetative messages so errorlog is easier to read

main
Yuriy 1 year ago
parent c6cf2a408a
commit 84c64bd428

@ -183,12 +183,12 @@ CheckCurrentTabForCurrentSite(){
if(!InStr(CurrentTabURL, CurrentSite)){ if(!InStr(CurrentTabURL, CurrentSite)){
Message = Chromedriver failed to switch to %CurrentSite%. Current Tab URL: %CurrentTabURL% Message = Chromedriver failed to switch to %CurrentSite%. Current Tab URL: %CurrentTabURL%
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar")
return "Failed" return "Failed"
} }
else, { else, {
Message = CheckCurrentTabForCurrentSite() passed successfully Message = CheckCurrentTabForCurrentSite() passed successfully
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile")
} }
} }
/* /*
@ -394,12 +394,12 @@ ActivateChromeTab(URL){
if(A_index < 3){ if(A_index < 3){
if(CurrentTabURL = StartingTabURL){ if(CurrentTabURL = StartingTabURL){
Message = Current Tab URL is THE SAME as Starting URL after %A_index% tab switches`nStuck on this tab? Message = Current Tab URL is THE SAME as Starting URL after %A_index% tab switches`nStuck on this tab?
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile")
CheckForAlerts() CheckForAlerts()
} }
else, { else, {
Message = Current Tab URL is DIFFERENT from starting URL after %A_index% tab switches Message = Current Tab URL is DIFFERENT from starting URL after %A_index% tab switches
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile")
} }
if(LastActiveTab = CurrentTabURL){ if(LastActiveTab = CurrentTabURL){
@ -429,7 +429,7 @@ ActivateChromeTab(URL){
; / loop through tabs ; / loop through tabs
} }
Message = ActivateChromeTab function failed to activate tab for %urlBase% after looping through %NumberOfTabActivationLoops% tabs Message = ActivateChromeTab function failed to activate tab for %urlBase% after looping through %NumberOfTabActivationLoops% tabs
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
return "Failed" return "Failed"
} }
@ -438,7 +438,7 @@ ActivateChromeTab(URL){
CheckForAlerts(){ CheckForAlerts(){
Message = Checking for Any Obstructing Alerts in Chrome Message = Checking for Any Obstructing Alerts in Chrome
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
status := 1 status := 1
try driver.SwitchToAlert() try driver.SwitchToAlert()
@ -450,7 +450,7 @@ CheckForAlerts(){
if(status){ if(status){
; msgbox, alert found ; msgbox, alert found
; Message = Page Alert Found. Dismissing. ; Message = Page Alert Found. Dismissing.
Message = Page Alert Found. Accepting. Message = Page Alert Found. Accepting so page gets refreshed.
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
try driver.switchToalert().accept() try driver.switchToalert().accept()
; try driver.switchToalert().dismiss() ; try driver.switchToalert().dismiss()

Loading…
Cancel
Save