View on GitHub

Testr

Integration testing framework for developers.

Download this project as a .zip file Download this project as a tar.gz file

Integration testing framework for developers. TestR allows automating testing of web applications. Currently we are supporting Internet Explorer, Chrome, and Firefox*. We have full automation support for Internet Explorer and Chrome.

To install TestR, run one of the following command in the Package Manager Console.

Searching Bing using Internet Explorer

using (var browser = InternetExplorerBrowser.AttachOrCreate())
{
	browser.NavigateTo("http://bing.com");
	browser.Elements.TextInputs["sb_form_q"].TypeText("Bobby Cannon");
	browser.Elements["sb_form_go"].Click();
	browser.WaitForRedirect();
}

Searching Amazon using Chrome

using (var browser = ChromeBrowser.AttachOrCreate()) 
{
	browser.NavigateTo("http://amazon.com");
	browser.Elements.TextInputs["twotabsearchtextbox"].TypeText("protein powder");
	browser.Elements.First(x => x.GetAttributeValue("title") == "Go").Click();
	browser.WaitForRedirect();
}

Same example using FireFox

// Don't Forget: Firefox debug port must be started manually (listen 6000).
using (var browser = FirefoxBrowser.AttachOrCreate()) 
{
	browser.NavigateTo("http://amazon.com");
	browser.Elements.TextInputs["twotabsearchtextbox"].TypeText("protein powder");
	browser.Elements.First(x => x.GetAttributeValue("title") == "Go").Click();
	browser.WaitForRedirect();
}

Coming Soon

Known Issues