added more error logging to subscribestar submit
This commit is contained in:
@@ -197,9 +197,12 @@ if(ImageAttachmentFilepath != ""){
|
|||||||
SaveDriverURLOFErrorPage()
|
SaveDriverURLOFErrorPage()
|
||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
|
else, {
|
||||||
|
Message = Post Button Exists and has the text: %Status%
|
||||||
|
SaveOrPostProgress(Message:=Message,PostType:=",ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
|
}
|
||||||
|
|
||||||
; Msgbox % "Status: " Status
|
; click submit button
|
||||||
|
|
||||||
js = document.querySelector(%Selector%).click()
|
js = document.querySelector(%Selector%).click()
|
||||||
try, Status := driver.executeScript(js)
|
try, Status := driver.executeScript(js)
|
||||||
; Msgbox % "Status: " Status
|
; Msgbox % "Status: " Status
|
||||||
@@ -216,7 +219,17 @@ if(ImageAttachmentFilepath != ""){
|
|||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; double double check that post got posted by checking if able to grab text that was just input
|
||||||
|
js = return document.querySelector("trix-editor[role='textbox']").innerText
|
||||||
|
try, Status := driver.executeScript(js)
|
||||||
|
if(Status){
|
||||||
|
Message = Post Failed. Input box still exists on page but no errors were thrown when clicking post button
|
||||||
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
||||||
|
SaveDriverURLOFErrorPage()
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Xpath = //button[contains(text(),'Post')]
|
/* Xpath = //button[contains(text(),'Post')]
|
||||||
|
|||||||
Reference in New Issue
Block a user