error checkign and general msgbox window
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user