From de5b8afdf0b4bf2be84f90664c1f75315aef7903 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Sat, 28 Jan 2023 12:56:32 -0500 Subject: [PATCH] Added error check to gettr js execution so it doesn't throw an error box if failed --- Freedomain Social Media Poster.ahk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Freedomain Social Media Poster.ahk b/Freedomain Social Media Poster.ahk index 4b08091..aeee6af 100644 --- a/Freedomain Social Media Poster.ahk +++ b/Freedomain Social Media Poster.ahk @@ -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 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) ; JsToExecute = document.querySelector("#textarea-post").text = "%JSPostTitleAndBody%";