Hello,
First of all I'd like to tell you your Silverlight UI testing framework looks very useful.
I'm a member of QA team in the company that I work for and I have the issues to find custom control on Silverlight page. We have DdTextBox control that is derived from System.Windows.Controls.TextBox control. On xaml page it looks like this:
<dwc:DdTextBox x:Name="NativeUsernameField"... />
When I use this method in my test:
var username = slApp.FindName("NativeUsernameField");
I'm able to find it, but I can't assert it if it's pressed or not.
When I use this method:
DdTextBox username1 = slApp.Find.ByName<DdTextBox>("NativeUsernameField");
I have this compiler error:
Error 1 The type 'Dundas.Dashboard.Controls.DdTextBox' cannot be used as type parameter 'T' in the generic type or method 'ArtOfTest.WebAii.Silverlight.VisualFind.ByName<T>(string)'. There is no implicit reference conversion from 'Dundas.Dashboard.Controls.DdTextBox' to 'ArtOfTest.WebAii.Silverlight.FrameworkElement'. D:\Corgent Diagram\Test projects\Silverlight\SilverlightApplication10\SLTest\WebAiiVSUnitTest3.cs 163 35 SLTest
I suppose I did something wrong, but I'm not sure what. Could you, please, help me with this issue?
Thank you in advance.
Goran Tesic