Skip to content

Instantly share code, notes, and snippets.

@johnmmoss
Created October 20, 2018 21:12
Show Gist options
  • Select an option

  • Save johnmmoss/6b129b3b91d2b3773196fe2201755dc0 to your computer and use it in GitHub Desktop.

Select an option

Save johnmmoss/6b129b3b91d2b3773196fe2201755dc0 to your computer and use it in GitHub Desktop.
[BeforeScenario]
public void BeforeScenario()
{
// At the begining of the scenario, we are on the homepage
var webDriver = FeatureContext.Current.Get<IWebDriver>();
var homePage = new HomePage(webDriver);
ScenarioContext.Current.Set<HomePage>(homePage);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment