private void AfterScenario()
        {
            switch (context.ScenarioExecutionStatus)
            {
            case ScenarioExecutionStatus.OK:
            {
                test.Log(Status.Pass);
                break;
            }

            case ScenarioExecutionStatus.TestError:
            {
                test.Log(Status.Fail, $"{context.TestError.Message} : {context.TestError.StackTrace}");
                break;
            }
            }
            extentReport.Flush();
            PageProvider.Flush();
        }