/// <summary> /// Verify next step text /// </summary> /// <param name="buttonText">The button text.</param> /// <param name="isVisible">if set to <c>true</c> [is visible].</param> public void VerifyNextStepText(string buttonText = "Next step", bool isVisible = true) { HtmlButton nextButton = EM.Forms.FormsFrontend.NextStepButton; if (!isVisible) { nextButton.AssertIsNotVisible("Next step button"); } else { nextButton.AssertIsVisible("Next step button"); Assert.IsTrue(nextButton.InnerText.Contains(buttonText), "Button text "); } }
/// <summary> /// Verify next step text /// </summary> /// <param name="buttonText">The button text.</param> /// <param name="isVisible">if set to <c>true</c> [is visible].</param> public void VerifyNextStepTextInCreateResponseScreen(string buttonText = "Next step", bool isVisible = true) { HtmlButton nextButton = this.ActiveWindowEM.Find.ByExpression <HtmlButton>("data-sf-btn-role=next"); if (!isVisible) { nextButton.AssertIsNotVisible("Next step button"); } else { nextButton.AssertIsVisible("Next step button"); Assert.IsTrue(nextButton.InnerText.Contains(buttonText), "Button text "); } }