From f056489f509d570de33c67e023e3edc5296fe3ac Mon Sep 17 00:00:00 2001 From: yuriy Date: Tue, 28 Feb 2023 22:15:43 -0500 Subject: [PATCH] added alert check to CheckCurrentTabForCurrentSite function that gets called after each tab navigation in FSMP --- Selenium-Shared-Functions.ahk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Selenium-Shared-Functions.ahk b/Selenium-Shared-Functions.ahk index 48b1b12..95059ef 100644 --- a/Selenium-Shared-Functions.ahk +++ b/Selenium-Shared-Functions.ahk @@ -5,6 +5,8 @@ CheckCurrentTabForCurrentSite(){ try CurrentTabURL := GetCurrentTabURlBase() + CheckForAlerts() + if(!InStr(CurrentTabURL, CurrentSite)){ Message = Chromedriver failed to switch to %CurrentSite%. Current Tab URL: %CurrentTabURL% SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")