Hi,
Two weeks ago I started to use WebAii for Silverlight Automation testing. This application is developed in SL 4 and it contains even some custom controls (ie. masek text boxes). Until now I didn't find a solution to identify and type and value in them. Those controls are not derived from text box controls , are delivered directly from controls lib so:
I identified them in this way:
- Control textBox = app.FindName<Control>("textBoxName");
I tried to fill them in different ways without any result:
- textBox.User.TypeText("1234as", 500, true);
- textBox.SetProperty(new AutomationProperty("Text", typeof(string)), "1234as");
The problems is that the masked text boxes are still empty even if the property was set correctly (I verified)
I used the second statement: "textBox.SetProperty ..." for a normal text box and it has been filled normally.
Could you please help me to solve this issue ?