示例#1
0
        /// <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();
        }
示例#3
0
        /// <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();
        }
示例#4
0
        /// <summary>
        /// Press subscribe button
        /// </summary>
        public void ClickSubscribeButton()
        {
            HtmlButton subscribeButton = EM.EmailCampaigns.SubscribeFormFrontend.SubscribeButton
                                         .AssertIsPresent("Subscribe button");

            subscribeButton.MouseClick();
            ActiveBrowser.WaitUntilReady();
            ActiveBrowser.WaitForAsyncJQueryRequests();
        }
示例#5
0
        /// <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();
        }
示例#6
0
        /// <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();
        }
示例#7
0
        /// <summary>
        /// Clicks the submit button in the frontend of the form
        /// </summary>
        public void ClickSubmit()
        {
            HtmlButton submitButton = EM.Forms.FormsFrontend.SubmitButton;

            submitButton.MouseClick();
        }