Jump to content

Click on Button1 which was Previously Button3


Recommended Posts

HI,
    I am using Autoit to Automate our qa installer. I am new to this. I am stuck at a point. The Scenario is explained Below.
 
I run a .exe file using the run command, it takes time to do some Background checking and then starts to install the application. During the Process the Next button is Disabled whose Class at this point in time is Button3 and when the next button is Enabled the class is changed to Button1. I am not sure how to Code this part. I have used the Below Codes but failed.
 
 

WinWait("AirWatch - Installation Wizard","")
If Not WinActive("AirWatch - Installation Wizard","") Then WinActivate("AirWatch - Installation Wizard","")
WinWaitActive("AirWatch - Installation Wizard","")
While Not ControlCommand('AirWatch - Installation Wizard', '', 'Button3', 'IsEnabled', '')
    Sleep(500)
WEnd
ControlClick('AirWatch - Installation Wizard','&Next >','[ID:17696]')

 
 

 
Note: Text: &Next >

If Not ControlCommand('AirWatch - Installation Wizard', '', 'Button1', 'IsEnabled', '') Then
    Do
        Sleep(10)
    Until ControlCommand('AirWatch - Installation Wizard', '', 'Button1', 'IsEnabled', '')
EndIf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...