2 Commits

Author SHA1 Message Date
b1a7fb3326 Merged Notify Users checkbox selection 2024-11-17 17:01:57 -05:00
e04a6b8d11 slight tweak to locals "notify users" checkbox 2024-11-17 15:24:38 -05:00

View File

@@ -122,10 +122,13 @@ if(Status){
; make sure the "Notify Users" checkbox is selected
Xpath = (//input[contains(@name,'is_do_promo')])[1]
ClickXpath = //input[@name='is_do_promo']//parent::*
try, Status := driver.findelementbyxpath(Xpath).isSelected()
if(Status = 0){
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=1000)
Status := Selenium_LoopToClickXpath(Xpath:=ClickXpath,NumOfLoops:=1,SleepLength:=1000)
; Check Again if the checkbox is checked ON (-1)
try, Status := driver.findelementbyxpath(Xpath).isSelected()
if(Status = "0"){
Message = Failed to Check ON the Notify Users Checkbox
@@ -133,6 +136,8 @@ if(Status = 0){
}
}
DevModeMsgBox("notify user option checked?")
; check if the "Auto Submit Post" checkbox is checked, and if not check it
js = return document.querySelector("#autosubmit_enabled").checked;
try AutoSubmitstatus := driver.executeScript(js)