Skip to content

Instantly share code, notes, and snippets.

@marcusoftnet
Created May 15, 2012 13:25
Show Gist options
  • Select an option

  • Save marcusoftnet/2701744 to your computer and use it in GitHub Desktop.

Select an option

Save marcusoftnet/2701744 to your computer and use it in GitHub Desktop.
FluentAutomationBrowser encapsulation
public class BrowserAutomation : FluentTest
{
public override void Setup()
{
ScreenshotOnAssertException = true;
ScreenshotPath = @"C:\temp\";
base.Setup();
}
}
public class Browser
{
private static BrowserAutomation _instance;
public static BrowserAutomation Instance
{
get
{
if (_instance == null)
{
_instance = new BrowserAutomation();
_instance.I.Use(BrowserType.InternetExplorer);
}
return _instance;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment