From 84c64bd4282f8a675a323bfb7bf41480bb1e4e1c Mon Sep 17 00:00:00 2001 From: yuriy Date: Sun, 20 Aug 2023 00:36:38 -0400 Subject: [PATCH] removed discord messages for repetative messages so errorlog is easier to read --- Selenium-Functions.ahk | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Selenium-Functions.ahk b/Selenium-Functions.ahk index dbf3e5d..ff761d2 100644 --- a/Selenium-Functions.ahk +++ b/Selenium-Functions.ahk @@ -183,12 +183,12 @@ CheckCurrentTabForCurrentSite(){ if(!InStr(CurrentTabURL, CurrentSite)){ 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" } else, { 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(CurrentTabURL = StartingTabURL){ 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() } else, { 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){ @@ -429,7 +429,7 @@ ActivateChromeTab(URL){ ; / loop through 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" } @@ -438,7 +438,7 @@ ActivateChromeTab(URL){ CheckForAlerts(){ Message = Checking for Any Obstructing Alerts in Chrome - SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") + SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile") status := 1 try driver.SwitchToAlert() @@ -450,7 +450,7 @@ CheckForAlerts(){ if(status){ ; msgbox, alert found ; 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") try driver.switchToalert().accept() ; try driver.switchToalert().dismiss()