Hi guys,
OK, so I've given up attempting to use the test recorder - it seems to be just too flaky for any costructive use, so I've gone back to manually coding up tests, and have run into yet another problem....
We have a standard asp.net web app using frames. In one frame we have a "Dashboard" and in another we have a menu - both of which are silverlight controls. There are also several "preceding" frames which just contain normal html. I'm able to drive the login portion of our app correctly and log in to the sysytem, but when using the following code, I'm consistently getting the error mentioned in the title:
OK, so I've given up attempting to use the test recorder - it seems to be just too flaky for any costructive use, so I've gone back to manually coding up tests, and have run into yet another problem....
We have a standard asp.net web app using frames. In one frame we have a "Dashboard" and in another we have a menu - both of which are silverlight controls. There are also several "preceding" frames which just contain normal html. I'm able to drive the login portion of our app correctly and log in to the sysytem, but when using the following code, I'm consistently getting the error mentioned in the title:
HtmlAnchor a = this.manager.ActiveBrowser.Find.ByContent<HtmlAnchor>("LoginLink");
if (null != a)
{
a.Click();
}
this.manager.ActiveBrowser.WaitUntilReady();
this.manager.ActiveBrowser.RefreshDomTree();
// 0 in list...
SilverlightApp app = this.manager.ActiveBrowser.SilverlightApps()[0];
Any ideas? I'm guessing that it's due to the additional frames - I've managed to get the following:
Browser b = this.manager.ActiveBrowser.Frames["Menu"];
To work, but the returned Browser object seems not to be quite the same as a "normal" browser, and so still can't find any SL apps...
Anyone?