Fixed selenium tab loop function to not incredement by 3 each time moving on to new site, updated errorlogging messages
This commit is contained in:
@@ -104,14 +104,14 @@ CreateArrayOfChromeTabs() {
|
|||||||
|
|
||||||
; 5 is arbitrary number to do some extra loops to make sure all tabs are gone through
|
; 5 is arbitrary number to do some extra loops to make sure all tabs are gone through
|
||||||
; most likely not necessary because unloaded tabs cannot be activated
|
; most likely not necessary because unloaded tabs cannot be activated
|
||||||
TotalTabLoops := TotalTabsFound + 5
|
TotalTabLoops := TotalTabsFound + 2
|
||||||
|
|
||||||
Message = Total Pre-Existing Tabs in Chrome: %TotalTabsFound%`nTotal Times looping through tabs to create Chrome Tabs Array: %TotalTabLoops%
|
Message = Total Pre-Existing Tabs in Chrome: %TotalTabsFound%`nTotal Times looping through tabs to create Chrome Tabs Array: %TotalTabLoops%
|
||||||
SaveOrPostProgress(Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
SaveOrPostProgress(Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Message = Creating an Array of All Chrome Tabs`n(Sometimes might get stuck for a short while if there is something loading in a tab)
|
Message = Creating an Array of All Chrome Tabs`n(Sometimes might get stuck for a short while if acive tab's page is reloading/loading)
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
||||||
|
|
||||||
|
|
||||||
@@ -264,7 +264,7 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){
|
|||||||
if(Status = "Failed"){
|
if(Status = "Failed"){
|
||||||
try currentURL := GetCurrentTabURLBase()
|
try currentURL := GetCurrentTabURLBase()
|
||||||
Message = Failed to switch active tab to %URLBase%. Current tab is: %currentURL%
|
Message = Failed to switch active tab to %URLBase%. Current tab is: %currentURL%
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
|
|
||||||
CheckForAlerts()
|
CheckForAlerts()
|
||||||
|
|
||||||
@@ -353,7 +353,9 @@ ActivateChromeTab(URL){
|
|||||||
|
|
||||||
TabFoundSuccessfully :=
|
TabFoundSuccessfully :=
|
||||||
|
|
||||||
NumberOfTabActivationLoops := ChromeTabsURLArray.Length() + 3
|
NumberOfTabActivationLoops := ChromeTabsURLArray.Length()
|
||||||
|
; Message = NumberOfTabActivationLoops has been increased by 3
|
||||||
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
|
|
||||||
Message = Looping through tabs -> %NumberOfTabActivationLoops% <- times to find tab with URL: %urlBase%
|
Message = Looping through tabs -> %NumberOfTabActivationLoops% <- times to find tab with URL: %urlBase%
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
|
|||||||
Reference in New Issue
Block a user