|
|
|
@ -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()
|
|
|
|
|