From e04a6b8d11235b895d462d2cc19586e7dfd44081 Mon Sep 17 00:00:00 2001 From: "James A. Pyrich" Date: Sun, 17 Nov 2024 15:24:38 -0500 Subject: [PATCH] slight tweak to locals "notify users" checkbox --- Modules/Locals-Upload.ahk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Locals-Upload.ahk b/Modules/Locals-Upload.ahk index d5e91d5..8c62ffd 100644 --- a/Modules/Locals-Upload.ahk +++ b/Modules/Locals-Upload.ahk @@ -122,10 +122,11 @@ 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) try, Status := driver.findelementbyxpath(Xpath).isSelected() if(Status = "0"){ Message = Failed to Check ON the Notify Users Checkbox