Jump to content
Sign in to follow this  
Nandish

Click on Button1 which was Previously Button3

Recommended Posts

Nandish

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

Share this post


Link to post
Share on other sites
Nandish

Yes, There are Three Buttons in the Window, Back, Cancel And Next, Cancel Button is Button1 Before Next is active

Share this post


Link to post
Share on other sites
Nandish

All it says is Button,button,button and Static 5Times..i tried to install it thru Command Line but i cannot.it is not supported.

Share this post


Link to post
Share on other sites
Nandish

and before Next is active it says Button,static,button,static,button and then static 4 times

Share this post


Link to post
Share on other sites
Nandish

Can you explain how it works. I am unable to understand

Share this post


Link to post
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
Sign in to follow this  

×