Settings mySettings = new Settings(BrowserType.FireFox, @"C:\browserlog\"); Manager myManager = new Manager(mySettings); myManager.Start(); myManager.LaunchNewBrowser(); myManager.ActiveBrowser.NavigateTo("http://www.c-c-center.de/nuetzliches/exceluebungen/index.htm"); myManager.ActiveBrowser.Find.ByContent<HtmlControl>("x:Kunden.xls").Download(false,DownloadOption.Save,"C:\\test.xls",5000);Settings mySettings = new Settings(BrowserType.FireFox, @"C:\browserlog\");Manager myManager = new Manager(mySettings);myManager.Start();myManager.LaunchNewBrowser();myManager.ActiveBrowser.NavigateTo("http://www.c-c-center.de/nuetzliches/exceluebungen/index.htm");Element elem = myManager.ActiveBrowser.Find.ByContent("x:Kunden.xls");string saveLocation = "C:\\test.xls";DownloadDialogsHandler handler = new DownloadDialogsHandler(myManager.ActiveBrowser, DialogButton.SAVE, saveLocation, myManager.Desktop);myManager.ActiveBrowser.Actions.Click(elem);handler.WaitUntilHandled(5000);
FindParam findParam = new FindParam("input", 3, "type=checkbox");
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:
I tried to fill them in different ways without any result:
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 ?
HtmlForm
form= ActiveBrowser.Frames[0].Find.ByTagIndex<HtmlForm>("formtag", 0);
Assert.IsTrue(form != null);
I am getting the error in such simple line, is there anything I need to do here?
Thanks