Home » .Net FrameworkRSS

GetProperty does not work


I am using a ButtonItem(a dotnetbar control from devcomponents) on my WinForm app. However, it is being registered by the recorder as a WinButton. The ButtonItem control has a 'Checked' property but when I use GetProperty("Checked") on the WinButton, I get a NotSupportedException saying that "Checked" property is not supported.

How can I make this work? I need to get access to the Checked property of the ButtonItem.




1 Answer Found


Answer 1

Unfortunately, these controls are not supported  in CUIT (VS2010). However, you can write your custom plugin for property  provider and handle this scenario. Please refer this series - http://blogs.msdn.com/b/gautamg/archive/2010/01/05/series-on-coded-ui-test-extensibility.aspx


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter