Created
May 15, 2012 13:25
-
-
Save marcusoftnet/2701744 to your computer and use it in GitHub Desktop.
FluentAutomationBrowser encapsulation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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