Difference between revisions of "Working with SIlverlight"

From PeformIQ Upgrade
Jump to navigation Jump to search
Line 16: Line 16:
* http://code.google.com/p/silverlight-selenium/
* http://code.google.com/p/silverlight-selenium/


=Blogs=
=Blogs and Groups=


* http://timheuer.com/blog/archive/2009/02/26/silverlight-testing-frameworks.aspx
* 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


=C#=
=C#=

Revision as of 11:04, 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());
}