Created
October 20, 2018 21:00
-
-
Save johnmmoss/a929d831402e0cce242229b496c4f45e to your computer and use it in GitHub Desktop.
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
| private static string websiteUrl = ConfigurationSettings.AppSettings["WebSiteUrl"]; | |
| [BeforeFeature] | |
| public static void BeforeFeature() | |
| { | |
| IWebDriver driver = new ChromeDriver(); | |
| FeatureContext.Current.Set(driver); | |
| driver.Navigate().GoToUrl(websiteUrl); | |
| } | |
| [AfterFeature] | |
| public static void AfterFeature() | |
| { | |
| // Clear up the webdriver | |
| var webDriver = FeatureContext.Current.Get<IWebDriver>(); | |
| webDriver.Quit(); | |
| webDriver.Dispose(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment