Beispiel #1
0
        public void AfterScenario()
        {
            Exeception lastError = ScenarioContext.Current.TestError;

            if (lastError != null)
            {
                // Do something with it
            }
        }
Beispiel #2
0
        public void AfterScenario()
        {
            Exeception lastError = ScenarioContext.Current.TestError;

            if (lastError != null)
            {
                if (lastError is OpenQA.Selenium.NoSuchElementException)
                {
                    // Test failure cause by not finding an element on the page
                }
            }
        }