error checkign and general msgbox window

This commit is contained in:
2024-05-03 12:52:49 -04:00
parent 43dd2c3f28
commit b5c3b4a606

View File

@@ -728,7 +728,7 @@ Selenium_LoopToSendValueToXpath(Xpath,NumOfLoops:=1,SleepLength:=1000,StringText
; msgbox % ClearElement
if(ClearElement){
Loop, 3 { ; have to do it multiple times to make it trigger properly
driver.FindElementByXPath(Xpath).clear()
try, driver.FindElementByXPath(Xpath).clear()
sleep, 500
}
}
@@ -1004,3 +1004,13 @@ OnMsgBoxJSReturnData() {
}
; Show a user confirmation msgbox with a proceed and STOP buttons
; Used by the "Confirm before Submit" checkbox
OnMsgBoxUserConfirmation() {
DetectHiddenWindows, On
Process, Exist
If (WinExist("ahk_class #32770 ahk_pid " . ErrorLevel)) {
ControlSetText Button1, PROCEED
ControlSetText Button2, STOP
}