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"); }
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"); }