コード例 #1
0
        public void GivenIRememberTheSubHeaderText()
        {
            var page    = new W3SchoolsTablePage(Browser);
            var divText = page.TopTextDiv.Text;

            PropertyBucket.Remember("W3SchoolsHeaderText", divText);
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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.");
            }
        }