Esempio n. 1
0
 protected BaseSteps(ScenarioContext scenarioContext, FeatureContext featureContext)
 {
     _scenarioContext = scenarioContext ?? throw new ArgumentNullException(nameof(scenarioContext));
     _featureContext  = featureContext ?? throw new ArgumentNullException(nameof(featureContext));
     _configuration   = scenarioContext.ScenarioContainer.Resolve <IConfiguration>();
     _driver          = _featureContext.SeleniumDriver(_configuration);
     _wait            = new WebDriverWait(_driver, TimeSpan.FromSeconds(10));
 }