Difference between revisions of "Working with SIlverlight"

From PeformIQ Upgrade
Jump to navigation Jump to search
(Created page with '=Some Links= The journey begins... * http://www.silverlight.net/learn/overview/working-with-javascript/html-bridge-%28silverlight-quickstart%29 * http://www.telerik.com/automat...')
 
 
(13 intermediate revisions by the same user not shown)
Line 5: Line 5:
* http://www.silverlight.net/learn/overview/working-with-javascript/html-bridge-%28silverlight-quickstart%29
* http://www.silverlight.net/learn/overview/working-with-javascript/html-bridge-%28silverlight-quickstart%29
* http://www.telerik.com/automated-testing-tools.aspx
* http://www.telerik.com/automated-testing-tools.aspx
* http://www.microsoft.com/getsilverlight/handlers/getSilverlight.ashx?v=4.0
* http://code.google.com/p/wipflash/
* http://archive.msdn.microsoft.com/silverlightut
* http://weblogs.asp.net/scottgu/archive/2008/04/02/unit-testing-with-silverlight.aspx
* http://msdn.microsoft.com/en-us/magazine/dd458800.aspx
=Selenium=
* http://wiki.openqa.org/pages/viewpage.action?pageId=49217549
* http://code.google.com/p/silverlight-selenium/
* http://www.scribd.com/doc/21638285/qLabs-SilverLight-Automation-Feasibility-Study
=Blogs and Groups=
* http://timheuer.com/blog/archive/2009/02/26/silverlight-testing-frameworks.aspx
* http://groups.google.com/group/selenium-users/browse_thread/thread/8aac3f8ddb4953ce/76af4f8f3c1ba6f2?lnk=raot
* http://comments.gmane.org/gmane.comp.web.selenium.devel/7206
=C#=
* [http://msdn.microsoft.com/en-us/library/ms747327.aspx Dot.NET Framework 4UI Automation Overview]
* http://white.codeplex.com/
<pre>
public Page()
{
    InitializeComponent();
    HtmlDocument htmlDoc = HtmlPage.Document;
    HtmlElement  htmlEl  = htmlDoc.GetElementById("Input");
    ...
    // Add an event handler for the Convert button.
    htmlEl = htmlDoc.GetElementById("Convert");
    htmlEl.AttachEvent("onclick", new EventHandler(this.OnConvertClicked));
}
void OnConvertClicked(object sender, HtmlEventArgs e)
{
    HtmlDocument htmlDoc = HtmlPage.Document;
    HtmlElement input    = htmlDoc.GetElementById("Input");
    HtmlElement output  = htmlDoc.GetElementById("Output");
    output.SetAttribute("value", input.GetAttribute("value").ToUpper());
}
</pre>


[[Category:Automation]]
[[Category:Automation]]
[[Category:Silverlight]]
[[Category:Silverlight]]
[[Category:Microsoft]]
[[Category:Microsoft]]

Latest revision as of 11:26, 5 October 2011

Some Links

The journey begins...

Selenium

Blogs and Groups

C#


public Page()
{
    InitializeComponent();
    HtmlDocument htmlDoc = HtmlPage.Document;
    HtmlElement  htmlEl  = htmlDoc.GetElementById("Input");
    ...
    // Add an event handler for the Convert button.
    htmlEl = htmlDoc.GetElementById("Convert");
    htmlEl.AttachEvent("onclick", new EventHandler(this.OnConvertClicked));
}

void OnConvertClicked(object sender, HtmlEventArgs e)
{
    HtmlDocument htmlDoc = HtmlPage.Document;
    HtmlElement input    = htmlDoc.GetElementById("Input");
    HtmlElement output   = htmlDoc.GetElementById("Output");
    output.SetAttribute("value", input.GetAttribute("value").ToUpper());
}