public void GivenIRememberTheSubHeaderText() { var page = new W3SchoolsTablePage(Browser); var divText = page.TopTextDiv.Text; PropertyBucket.Remember("W3SchoolsHeaderText", divText); }
public void ThenIShouldSeeThatTheTableTagIsSupportedIn(string browserName) { var page = new W3SchoolsTablePage(Browser); page.AssertCurrentPage(); Assert.IsTrue(page.IsBrowserSupported(browserName), String.Format("Expected browser {0} to be supported.", browserName)); }
public void ThenIShouldSeeThatTheTableTagIsSupportedForTheFollowing(Table table) { var page = new W3SchoolsTablePage(Browser); page.AssertCurrentPage(); // Iterate through the table and verify support for each browser foreach (TableRow row in table.Rows) { string browserName = row["Browser"]; Assert.IsTrue(page.IsBrowserSupported(browserName), $"Expected browser {browserName} to be supported."); } }