Jump to content

How to know the status of a Button [Enable/Disable]?


Recommended Posts

I am trying to automate installation of an .exe [One of our product related]. Script is completed and now working on error handling. Now i struck at final step where 'Next' button is in disabled state. My thought is to write an error message log and exit from code if 'Next' button is in disabled state but don't know how to find the button status. Please find the attached screenshot for reference

Can, anyone please guide me on how to find the status of button so that i can proceed further?

TIA

Link to comment
Share on other sites

ControlCommand() + IsEnabled

Thanks Zedna. I am not aware of the usage but i want to try this:

If not ControlCommand ("Win_Title_1", "Next", controlID, "IsEnabled", "") Then

Error log statements goes here

Exit

EndIf

In the above command, how can i get ControlID?

TIA

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...