or
Manager.LaunchNewBrowser();
So it would seem that the Manager is null.
Can you please tell me what could be causing this?
Nick
[Timeout(900000), TestMethod] public void CheckRadGridViewRowsCountTest() { //Manager.LaunchNewBrowser(); Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true); ActiveBrowser.AutoWaitUntilReady = true; ActiveBrowser.Window.SetActive(); ActiveBrowser.Window.SetFocus(); ActiveBrowser.Window.Maximize(); ActiveBrowser.NavigateTo(@"http://demos.telerik.com/silverlight/#GridView/Sorting"); // Get an instance of the running Silverlight Application. app = ActiveBrowser.SilverlightApps()[0]; ActiveBrowser.RefreshDomTree(); // Get an instance of the running Silverlight Application. app = ActiveBrowser.SilverlightApps()[0]; app.VisualTree.Find.Strategy = FindStrategy.AlwaysWaitForElementsVisible; app.VisualTree.Find.WaitOnElementsTimeout = timeout; RadGridView radGridView1 = app.VisualTree.Find.ByAutomationId<RadGridView>("RadGridView1"); var rowsCount = radGridView1.Rows.Count; }HtmlAnchor SLnk = Find.ById<HtmlAnchor>("zz5_Menu"); SLnk.MouseHover(5,5); SLnk.MouseClick(MouseClickType.LeftClick); ActiveBrowser.RefreshDomTree(); var dUser = Find.ByAttributes<HtmlControl>("description=Login With a different account.", "text=Sign in as Different User"); Console.WriteLine(dUser.IsEnabled + " " + dUser.IsVisible()); dUser.MouseClick();dUser.MouseHover();
dUser.ScrollToVisible();
before clicking the sub menu.
(attached the sub menu html code taken in firebug)
Please help.
Thanks in advance.