|
|
|
@ -197,9 +197,12 @@ if(ImageAttachmentFilepath != ""){
|
|
|
|
|
SaveDriverURLOFErrorPage()
|
|
|
|
|
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()
|
|
|
|
|
try, Status := driver.executeScript(js)
|
|
|
|
|
; Msgbox % "Status: " Status
|
|
|
|
@ -216,7 +219,17 @@ if(ImageAttachmentFilepath != ""){
|
|
|
|
|
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')]
|
|
|
|
|