Esempio n. 1
0
        public void ValidateLoginPageOnSave()
        {
            var fiddleHomePage = new FiddleHomePage(Driver);

            // Set up: Click the save button.
            fiddleHomePage.ClickSaveButton();

            // Validate: Login dialog exists and contains label text: "Log in."
            var loginModal = fiddleHomePage.GetLogoutModalLabel();

            Assert.IsTrue(loginModal.Text == "Log in");
        }
Esempio n. 2
0
        public void ValidateOutputPaneText()
        {
            var fiddleHomePage = new FiddleHomePage(Driver);

            // Set up: Get the output pane.
            IWebElement outputPane = fiddleHomePage.GetOutputPane();

            // Validate: output pane contains "Hello World."
            var outputPaneText = outputPane.Text;

            Assert.IsTrue(outputPaneText == "Hello World");
        }