Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 877 Bytes

ReadMe.md

File metadata and controls

41 lines (33 loc) · 877 Bytes

Page Performance Recorder with Firefox Driver .NET

This is a project to use Firefox driver to record what is on the page by capturing the HAR using Selenium 2, Firebug and NetExport.

Example

using AutomatedTester.PagePerf;
using NUnit.Framework;
using OpenQA.Selenium;

namespace AutomatedTester.PagePerf.Test
{
	[TestFixture]
	public class PagePerfDriverTest
	{
		private PagePerfFirefoxDriver driver = null;
		
		[SetUp]
		public void SetUp()
		{
			driver =  new PagePerfFirefoxDriver();
		}

		[TearDown]
		public void TearDown()
		{
			driver.Quit()
		}

		[Test]
		public void ShouldLoadDriverAndCreateAHarFile()
		{
			driver.Navigate().GoToUrl("http://www.theautomatedtester.co.uk/");
		} 
	}
}