Added error check to gettr js execution so it doesn't throw an error box if failed
This commit is contained in:
@@ -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%";
|
||||||
|
|||||||
Reference in New Issue
Block a user