This question is locked. New answers and comments are not allowed.
Hi Team,
According to the telerik blogs here, the WebAii Testing Framework support extended silverlight RadControls.
So in the silverlight side, I extended the RadWindow Control, it's seems something like this :
I use it in the xaml file:
Then, in the testing side, I override the RadWindow control mappings like this :
Finally, in the test method I want to locate my extended RadWindow so I do this :
So the stwindowRad is null
could I forget to do something?
thanks in advance
Larah
According to the telerik blogs here, the WebAii Testing Framework support extended silverlight RadControls.
So in the silverlight side, I extended the RadWindow Control, it's seems something like this :
| using Telerik.Windows.Controls; |
| public class STWindow : RadWindow |
| { |
| .... |
| } |
I use it in the xaml file:
| <extended:STWindow x:Name="Alert" ../> |
Then, in the testing side, I override the RadWindow control mappings like this :
| private void RegisterExtendedFrameworkElement() |
| { |
| MappingsCollection STWindow = new MappingsCollection(); |
| STWindow.Add(RadControlMappingKeys.WindowKey, "STWindow"); |
| Manager.RegisterMappingsOverride(STWindow, typeof(RadWindow)); |
| } |
Finally, in the test method I want to locate my extended RadWindow so I do this :
| [TestMethod] |
| public void RadWindowTest() |
| { //click on the button who open the STWindow |
| RadWindow stwindowRad = app.Find.ByType<RadWindow>(); ... |
| } |
So the stwindowRad is null
could I forget to do something?
thanks in advance
Larah