public void AfterScenario() { if (!_scenarioContext.ScenarioInfo.Tags.Contains("@api")) { DriverFactory.CloseAndQuitDriver(); } }