How to enable a button using UIAutomation or White
问题 I'm trying to automate an installation wizard and I needed to click on a button that is not enabled. I know that this can be done using Windows Messages, but I was wondering if there is already support in White or UIAutomation for this For reference this doesn't work: var invoke = (System.Windows.Automation.InvokePattern)setup.button("Next >").AutomationElement.GetCurrentPattern(System.Windows.Automation.InvokePattern.Pattern); invoke.Invoke(); neither does this var guiAutomation = new API