|
|
@ -146,6 +146,27 @@ sleep, 500
|
|
|
|
driver.FindElementByXPath(Xpath).SendKeys("`n`n")
|
|
|
|
driver.FindElementByXPath(Xpath).SendKeys("`n`n")
|
|
|
|
sleep, 500
|
|
|
|
sleep, 500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(InStr(PostBody, "http")){
|
|
|
|
|
|
|
|
StrLengthOfPost := StrLen(PostBody)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:="Body has hyperlink, Inputting text key by key",PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Loop % StrLengthOfPost{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Current_Char := SubStr(PostBody, A_index, 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=20,StringTextContent:=Current_Char)
|
|
|
|
|
|
|
|
if(Status){
|
|
|
|
|
|
|
|
Message = Failed to Input Text
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
|
|
|
|
|
|
|
SaveDriverURLOFErrorPage()
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else, {
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:="Body has no hyperlink, inputting entire text body into element.",PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
|
|
|
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000,StringTextContent:=PostBody)
|
|
|
|
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000,StringTextContent:=PostBody)
|
|
|
|
if(Status){
|
|
|
|
if(Status){
|
|
|
|
Message = Failed to input Post Body
|
|
|
|
Message = Failed to input Post Body
|
|
|
@ -153,6 +174,8 @@ if(Status){
|
|
|
|
SaveDriverURLOFErrorPage()
|
|
|
|
SaveDriverURLOFErrorPage()
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; check if value was input
|
|
|
|
; check if value was input
|
|
|
|
js = return document.querySelector("trix-editor[role='textbox']").innerText
|
|
|
|
js = return document.querySelector("trix-editor[role='textbox']").innerText
|
|
|
|