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