guidmaster / AutomatedTester.PagePerf

This is a project to use Firefox driver to record what is on the page by capturing the HAR file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/");
		} 
	}
}

About

This is a project to use Firefox driver to record what is on the page by capturing the HAR file

License:Apache License 2.0