System.Windows.Automation.TogglePattern via Ranorex.Adapter
Posted: Tue Oct 30, 2012 2:14 pm
I am converting pre-written UI Automation scripts written in C# using AutomationElements to get the items I want to handle. I am trying to get a Telerik RadIndicator ProgressBar TogglePattern state. I have created a custom WaitForMaxTime() method that will wait until the element is no longer busy. When I try to get the TogglePattern this is the error message I get:
The type 'System.Windows.Automation.TogglePattern' must be convertible to 'Ranorex.Adapter' in order to use it as a parameter 'T' in the generic method 'T Ranorex.Core.Element.As<T>()' .
When I try to include VisualStudio Automation DLLs, Ranorex will "purge" them at some point and I can no longer use them. Is there a way to bridge the gap between Windows Automation TogglePattern and Ranorex Adapters?
The type 'System.Windows.Automation.TogglePattern' must be convertible to 'Ranorex.Adapter' in order to use it as a parameter 'T' in the generic method 'T Ranorex.Core.Element.As<T>()' .
When I try to include VisualStudio Automation DLLs, Ranorex will "purge" them at some point and I can no longer use them. Is there a way to bridge the gap between Windows Automation TogglePattern and Ranorex Adapters?