Fixed and expanded Parler login check

main
Yuriy 2 years ago
parent 7c8e8bbed0
commit a2762ab620

@ -894,7 +894,7 @@ ScriptRunTime := round(((A_TickCount - StartTime) / 1000), 2)
if(URLOfLastErrorPage != ""){ if(URLOfLastErrorPage != ""){
Message = Activating Tab of last failed post. Message = Activating Tab of last failed post.
SaveOrPostProgress(Message:=Message,PostType:="Tooltip") SaveOrPostProgress(Message:=Message,PostType:="Tooltip")
; DevModeMsgBox("pause") ; DevModeMsgBox("pause")
; message = URLOfLastErrorPage: %URLOfLastErrorPage% ; message = URLOfLastErrorPage: %URLOfLastErrorPage%
; DevModeMsgBox(URLOfLastErrorPage) ; DevModeMsgBox(URLOfLastErrorPage)
FindAndActivateTab(URLOfLastErrorPage) FindAndActivateTab(URLOfLastErrorPage)
@ -1325,9 +1325,21 @@ if(Status){
} }
; Check login status by checking the header of the page for "Feed" text ; Check login status by checking the header of the page for "Feed" text
js = return document.querySelector(".header__contain").innerText loop, 5 {
try status := driver.executeScript(js) SaveOrPostProgress(Message:="Checking Login Status",PostType:="Tooltip,ErrorLoggingTextFile")
js = return document.querySelector(".header__contain").innerText
try status := driver.executeScript(js)
if(Status)
continue
sleep, 1000
}
; DevModeMsgBox(status)
; Msgbox % "status: " status
if(!InStr(status, "Feed")){ if(!InStr(status, "Feed")){
; SaveOrPostProgress(Message:="Login Expired. Please log back in",PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") ; SaveOrPostProgress(Message:="Login Expired. Please log back in",PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
SaveOrPostProgress(Message:="Login Expired. Please log back in",PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") SaveOrPostProgress(Message:="Login Expired. Please log back in",PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")

Loading…
Cancel
Save