예제 #1
0
        public void ConfirmationAlertTest()
        {
            AlertsPageObject.ClickConfirmAlertButton();
            AlertsPageObject.DismissAlert();

            Assert.True(AlertsPageObject.GetResultText() == "You clicked: Cancel");
        }
예제 #2
0
        public void SimpleAlertTest()
        {
            AlertsPageObject.ClickSimpleAlertButton();
            AlertsPageObject.AcceptAlert();

            Assert.True(AlertsPageObject.GetResultText() == "You successfuly clicked an alert");
        }
예제 #3
0
        public void PromptAlertTest()
        {
            AlertsPageObject.ClickPromptAlertButton();
            AlertsPageObject.PopulateAlertPrompt("Some text");
            AlertsPageObject.AcceptAlert();

            Assert.True(AlertsPageObject.GetResultText() == "You entered: " + AlertsPageObject.TextEnteredToPrompt);
        }