public void VerifyDisplayOfPopUpWithButtons( string popUp, string firstButton, string secondButton) { Logger.LogMethodEntry("ContentLibrary", "VerifyAssetCopiedPosition", base.IsTakeScreenShotDuringEntryExit); var showMessagePage = new ShowMessagePage(); Assert.AreEqual(firstButton, showMessagePage.GetOkButtonText()); Assert.AreEqual(secondButton, showMessagePage.GetCancelButtonText()); Logger.LogMethodExit("ContentLibrary", "VerifyAssetCopiedPosition", base.IsTakeScreenShotDuringEntryExit); }
public void SeeTheAlertMessageWithButton(string messageText, string buttonNameFirst, string buttonNameSecond) { // see alert message with button Logger.LogMethodEntry("ActivitySubmission", "SeeTheAlertMessageWithButton", base.IsTakeScreenShotDuringEntryExit); ShowMessagePage showMessagePage = new ShowMessagePage(); Logger.LogAssertion("VerifyActivityAlertMessage", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual (messageText, showMessagePage.GetActivityAlertMessage())); Logger.LogAssertion("VerifyContinueButtonPresentInAlertWindow", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.IsTrue (showMessagePage.IsContinueButtonPresentInAlertWindow())); Logger.LogAssertion("VerifyCancelButtonPresentInAlertWindow", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.IsTrue (showMessagePage.IsCancelButtonPresentInAlertWindow())); Logger.LogMethodExit("ActivitySubmission", "SeeTheAlertMessageWithButton", base.IsTakeScreenShotDuringEntryExit); }