Added error check to gettr js execution so it doesn't throw an error box if failed

main
Yuriy 2 years ago
parent e6fbe579b7
commit de5b8afdf0

@ -3469,7 +3469,7 @@ Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=2,SleepLength:=1000
; disable spellcheck on input field using javascript so text doesn't get garbled ; disable spellcheck on input field using javascript so text doesn't get garbled
js = document.getElementById('textarea-post').setAttribute("spellcheck", "false"); js = document.getElementById('textarea-post').setAttribute("spellcheck", "false");
driver.executeScript(js) ;Executes a Javascript on the webpage, mostly used for buttons. try driver.executeScript(js) ;Executes a Javascript on the webpage, mostly used for buttons.
; DevModeMsgBox(JSPostTitleAndBody) ; DevModeMsgBox(JSPostTitleAndBody)
; JsToExecute = document.querySelector("#textarea-post").text = "%JSPostTitleAndBody%"; ; JsToExecute = document.querySelector("#textarea-post").text = "%JSPostTitleAndBody%";

Loading…
Cancel
Save