error checkign and general msgbox window

main
Yuriy 7 months ago
parent 43dd2c3f28
commit b5c3b4a606

@ -728,7 +728,7 @@ Selenium_LoopToSendValueToXpath(Xpath,NumOfLoops:=1,SleepLength:=1000,StringText
; msgbox % ClearElement ; msgbox % ClearElement
if(ClearElement){ if(ClearElement){
Loop, 3 { ; have to do it multiple times to make it trigger properly Loop, 3 { ; have to do it multiple times to make it trigger properly
driver.FindElementByXPath(Xpath).clear() try, driver.FindElementByXPath(Xpath).clear()
sleep, 500 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
}
Loading…
Cancel
Save