public async void NoStatement() { WebBrowser browser = new WebBrowser(WebDriver.Current); await xB.CurrentRun.AddScenario(this) .Given(HtmlReport.OfASinglePassingScenario()) .When(WebUser.ViewsReport(browser)) .AndAsync("the user expands to view a feature with a feature statement", async (s) => { await browser.ClickWhenVisible(Pages.HtmlReportPage.Area.Name(1)); }) .ThenAsync("the report should not show the feature statement", async (s) => { await browser.ClickWhenVisible(Pages.HtmlReportPage.Feature.Name(1)); await browser.WaitTillVisible(Pages.HtmlReportPage.Scenario.Name(1)); browser.ValidateNotExist(Pages.HtmlReportPage.Feature.Statement(1)); }) .Run(); }