The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check for possible error box
#1
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)
Code:
Copy      Help
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)
Code:
Copy      Help
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)