From 296dd6eabffee3c8de0243cab988518fb822c83e Mon Sep 17 00:00:00 2001 From: yuriy Date: Tue, 28 Feb 2023 22:07:28 -0500 Subject: [PATCH] updated function for checking current tab url --- Selenium-Shared-Functions.ahk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Selenium-Shared-Functions.ahk b/Selenium-Shared-Functions.ahk index 71fe577..48b1b12 100644 --- a/Selenium-Shared-Functions.ahk +++ b/Selenium-Shared-Functions.ahk @@ -3,10 +3,10 @@ ; -------------------------------Tab Navigation & Activation------------------------------- CheckCurrentTabForCurrentSite(){ - try CurrentTabURL := driver.url + try CurrentTabURL := GetCurrentTabURlBase() if(!InStr(CurrentTabURL, CurrentSite)){ - Message = Chromedriver failed to switch to %CurrentSite%. Please see errorlog for website it got stuck on. + Message = Chromedriver failed to switch to %CurrentSite%. Current Tab URL: %CurrentTabURL% SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") return "Failed" }