Fixed and expanded Parler login check

main
Yuriy 2 years ago
parent 7c8e8bbed0
commit a2762ab620

@ -1325,9 +1325,21 @@ if(Status){
}
; Check login status by checking the header of the page for "Feed" text
loop, 5 {
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")){
; 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")

Loading…
Cancel
Save