From 6f3065c5f3cb449d98fbf4084543cc2d4fd63c63 Mon Sep 17 00:00:00 2001 From: yuriy Date: Tue, 28 Feb 2023 00:28:11 -0500 Subject: [PATCH] imported functions from Freedomain Social media Poster Shared Functions file so this submodule can be a complete drop in replacement --- Freedomain-Posters-Shared-Functions.ahk | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Freedomain-Posters-Shared-Functions.ahk b/Freedomain-Posters-Shared-Functions.ahk index 7deff04..fb88914 100644 --- a/Freedomain-Posters-Shared-Functions.ahk +++ b/Freedomain-Posters-Shared-Functions.ahk @@ -909,7 +909,25 @@ InputFilePathIntoOpenWindow(Filepath){ ToolTip, } -; -------------------------------NavigateFromBaseURLTo------------------------------- + + + + +; -------------------------------Tab Navigation & Activation------------------------------- +CheckCurrentTabForCurrentSite(){ + try CurrentTabURL := driver.url + + if(!InStr(CurrentTabURL, CurrentSite)){ + Message = Chromedriver failed to switch to %CurrentSite%. Please see errorlog for website it got stuck on. + SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") + return "Failed" + } +} +/* +*/ + + + ExtractBaseURL(URL){ URLBase := StrReplace(URL,"https://","") ; remove beginning of URL URLBase := StrReplace(URLBase,"http://","") ; remove beginning of URL