Nandish Posted August 22, 2013 Share Posted August 22, 2013 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 More sharing options...
JohnOne Posted August 22, 2013 Share Posted August 22, 2013 Is there a Button1 before next is active? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Nandish Posted August 22, 2013 Author Share Posted August 22, 2013 Yes, There are Three Buttons in the Window, Back, Cancel And Next, Cancel Button is Button1 Before Next is active Link to comment Share on other sites More sharing options...
JohnOne Posted August 22, 2013 Share Posted August 22, 2013 What does WinGetClassList tell you about the window before and after next is active? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Bert Posted August 22, 2013 Share Posted August 22, 2013 Alternative question - does the installer support command line switches? If yes, then you may be able to do the install without clicking on any buttons. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Nandish Posted August 22, 2013 Author Share Posted August 22, 2013 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. Link to comment Share on other sites More sharing options...
Nandish Posted August 22, 2013 Author Share Posted August 22, 2013 and before Next is active it says Button,static,button,static,button and then static 4 times Link to comment Share on other sites More sharing options...
JohnOne Posted August 22, 2013 Share Posted August 22, 2013 (edited) While WinGetClassList('AirWatch - Installation Wizard') <> 'Button,button,button and Static 5Times' Sleep(500) WEnd ;use Button1 Edited August 22, 2013 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Nandish Posted August 23, 2013 Author Share Posted August 23, 2013 Can you explain how it works. I am unable to understand Link to comment Share on other sites More sharing options...
JohnOne Posted August 23, 2013 Share Posted August 23, 2013 It waits until next button is active. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now