From 9dda0e54f0ce67827b555e3c1ab931b7cec366b5 Mon Sep 17 00:00:00 2001 From: yuriy Date: Sun, 23 Apr 2023 15:19:10 -0400 Subject: [PATCH] small error message updates, removed posting of current tab URL to discord --- Selenium-Shared-Functions.ahk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Selenium-Shared-Functions.ahk b/Selenium-Shared-Functions.ahk index 46d043d..48254a4 100644 --- a/Selenium-Shared-Functions.ahk +++ b/Selenium-Shared-Functions.ahk @@ -236,12 +236,15 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){ Message = Checking for URLBase: %URLBase% within ChromeTabsURLArray SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") + ; msgbox % HasSubstringVal(ChromeTabsURLArray, URLBase) . "`n`n is the status of URLbase in ChromeTabsURLArray" ; if URLBase is NOT a substring within any of the values in the array if(!HasSubstringVal(ChromeTabsURLArray, URLBase)) { ; DevModeMsgBox("Creating new tab") - Message = Tab for %urlBase% does not exist. Creating new tab with URL: %URL% + Message = Chrome tab does not exist. Creating new tab ;. Creating new tab with URL: %URL% + SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") + try, run "%ChromeFilepath%" "%URL%" catch e { Message = Trying to Run Chrome with URL failed for some reason. Wrong Chrome filepath? @@ -263,7 +266,7 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){ status := ActivateChromeTab(URLBase) if(Status = "Failed"){ try currentURL := GetCurrentTabURLBase() - Message = Failed to switch active tab to %URLBase%. Current tab is: %currentURL% + Message = Failed to switch active tab to %URLBase%, currently on different site. SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") CheckForAlerts()