Hello!
I am new in Web.Aii
I need to learn to test Silverlight applications.
E.g., I want to click on some square at http://www.brightstarr.com/US/Pages/default.aspx
I use such code:
Manager.ActiveBrowser.NavigateTo("http://www.brightstarr.com/US/Pages/default.aspx");
Manager.ActiveBrowser.WaitUntilReady();
System.Threading.Thread.Sleep(6000);
SilverlightApp app = Manager.ActiveBrowser.SilverlightApps().First();
app.FindName<Button>("autoUpgrade").User.Click();
But it does not work. web.Aii just can't find element to click.
Can anybody halp me and tell what to do?
Code of the square in HTML code:
<object height="100%" width="100%" type="application/x-silverlight-2" data="data:application/x-silverlight,">
<param value="../../../Documents/Silverlight/WebAnimationsusa.xap" name="source" id="ctl00_ctl22_g_57f12b59_9d07_49b9_8715_ce29bec40605_ctl00_src"/>
<param value="onSilverlightError" name="onerror"/>
<param value="white" name="background"/>
<param value="3.0.40818.0" name="minRuntimeVersion"/>
<param value="true" name="autoUpgrade"/>
<param value="true" name="windowless"/>
<a style="text-decoration: none;" href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0">
<img value="http://go.microsoft.com/fwlink/?LinkId=108181" style="border-style: none;"
alt="Get Microsoft Silverlight" id="ctl00_ctl22_g_57f12b59_9d07_49b9_8715_ce29bec40605_ctl00_img" src="http://go.microsoft.com/fwlink/?LinkId=108181"/>
</a>
</object>