10-12-2017, 08:37 AM
I am trying to automate the install of an application and it works, however there is one part that might fail if part of the software is already installed.
How can I check for that?
Current Code (Works great)
But need to Check if this happens before last window. (if it does I want to click ok and then wait for last window)
Is there a default time out if the last ok box does not appear? sometimes if part of it fails the ok box might not appear, and other times it does.
How can I check for that?
Current Code (Works great)
int w4=wait(21 win("End User License Agreement" "*.Window.*"))
lef 271 12 w4 ;;title bar
lef 435 574 w4 1 ;; 'End User License Agreement'
lef 637 586 w4 1 ;;push button 'I Accept'
int w5=wait(48 win("Redistributable Installation Complete!" "*.Window.*"))
lef 518 182 w5 1 ;;push button 'OK'
But need to Check if this happens before last window. (if it does I want to click ok and then wait for last window)
int w5=wait(111 win("Installation Failed" "*.Window.*"))
lef 480 167 w5 1 ;;push button 'OK'
Is there a default time out if the last ok box does not appear? sometimes if part of it fails the ok box might not appear, and other times it does.