public void CaptureScreenshotAtError()
        {
            var randomNumber = DateTime.Now.Ticks.ToString();
            var scenarioName = string.Concat(scenarioContext.ScenarioInfo.Title, randomNumber);

            if (scenarioContext.ScenarioExecutionStatus == ScenarioExecutionStatus.TestError)
            {
                WebDriverExtentions.CaptureScreenshots(scenarioName);
            }
        }
 public static void AfterScenario()
 {
     WebDriverExtentions.CloseDriver();
 }
 public static void BeforeScenario()
 {
     WebDriverExtentions.StartDriver();
 }