From dcd947b136f5f2b8645cefd7ed693761a279317f Mon Sep 17 00:00:00 2001 From: yuriy Date: Fri, 21 Jun 2024 23:50:35 -0400 Subject: [PATCH] Check notify users checkbox --- Lib/Freedomain-Posters-Shared-Functions | 2 +- Modules/Locals-Upload.ahk | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Lib/Freedomain-Posters-Shared-Functions b/Lib/Freedomain-Posters-Shared-Functions index 6bf7233..e654611 160000 --- a/Lib/Freedomain-Posters-Shared-Functions +++ b/Lib/Freedomain-Posters-Shared-Functions @@ -1 +1 @@ -Subproject commit 6bf72336d0af0aa57064fc40c267677bb27577f3 +Subproject commit e654611bf3780c5a38ab700517fd34b6de78ebe2 diff --git a/Modules/Locals-Upload.ahk b/Modules/Locals-Upload.ahk index fc416bf..9d6b715 100644 --- a/Modules/Locals-Upload.ahk +++ b/Modules/Locals-Upload.ahk @@ -120,6 +120,17 @@ if(Status){ } +; make sure the "Notify Users" checkbox is selected +Xpath = (//input[contains(@name,'is_do_promo')])[1] +Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=1000) +try, Status := driver.findelementbyxpath(Xpath).isSelected() +if(Status = "0"){ + Message = Failed to Check ON the Notify Users Checkbox + SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") +} + + + ; 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)