/// <summary> /// Clicks the submit button in the frontend of the form and checks the succsess message /// </summary> public void SubmitFormWithCustomMessage(string successMessage) { HtmlButton submitButton = EM.Forms.FormsFrontend.SubmitButton; submitButton.MouseClick(); ActiveBrowser.Find.AssociatedBrowser.GetControl <HtmlDiv>("tagname=div", "innertext=" + successMessage); }
/// <summary> /// Clicks the submit button in the frontend of the form /// </summary> public void SubmitForm() { HtmlButton submitButton = EM.Forms.FormsFrontend.SubmitButton; submitButton.MouseClick(); this.WaitForSuccessMessage(); }
/// <summary> /// Clicks the submit button in the frontend of the form /// </summary> public void ClickSubmit() { HtmlButton submitButton = EM.Forms.FormsFrontend.SubmitButton; submitButton.MouseClick(); ActiveBrowser.WaitForAsyncJQueryRequests(); ActiveBrowser.WaitUntilReady(); ActiveBrowser.RefreshDomTree(); }
/// <summary> /// Press subscribe button /// </summary> public void ClickSubscribeButton() { HtmlButton subscribeButton = EM.EmailCampaigns.SubscribeFormFrontend.SubscribeButton .AssertIsPresent("Subscribe button"); subscribeButton.MouseClick(); ActiveBrowser.WaitUntilReady(); ActiveBrowser.WaitForAsyncJQueryRequests(); }
/// <summary> /// Clicks the submit button multiple times in the frontend of the form /// </summary> /// <param name="count">The count.</param> public void MultipleSubmitForm(int count) { HtmlButton submitButton = EM.Forms.FormsFrontend.SubmitButton; for (int i = 0; i < count; i++) { submitButton.MouseClick(); } this.WaitForSuccessMessage(); }
/// <summary> /// Press Save changes button /// </summary> public void SaveChangesButton() { HtmlButton saveChangesButton = EM.Identity.ProfileFrontend.SaveChanges .AssertIsPresent("Save changes button"); saveChangesButton.ScrollToVisible(); saveChangesButton.Focus(); saveChangesButton.MouseClick(); saveChangesButton.InvokeClick(); ActiveBrowser.WaitUntilReady(); ActiveBrowser.WaitForAsyncJQueryRequests(); }
/// <summary> /// Clicks the submit button in the frontend of the form /// </summary> public void ClickSubmit() { HtmlButton submitButton = EM.Forms.FormsFrontend.SubmitButton; submitButton.MouseClick(); }