Exemplo n.º 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);
        }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }