Package com.gargoylesoftware.htmlunit.html

Examples of com.gargoylesoftware.htmlunit.html.HtmlForm.submit()


        HtmlForm form = removalPage.getFormByName(removalFormName);
        textContent = form.getTextContent();

        if (serverSize == 1) {
            try { form.submit();
            } catch (Exception e) {
                buttonFound = false;
            }
        } else {
            form.submit(null);
View Full Code Here


            try { form.submit();
            } catch (Exception e) {
                buttonFound = false;
            }
        } else {
            form.submit(null);
        }
    }

    /**
     * Test adding server from UI.
View Full Code Here

                radioButtonDefaultConfig.setChecked(true);
            }
        }
        assertTrue("Failed to choose 'GerritServer with Default Configurations'", radioButtonDefaultConfig.isChecked());

        form.submit(null);
    }

    /**
     * Add a GerritServer by copying existing configs from the UI.
     *
 
View Full Code Here

        }
        assertTrue("Failed to choose 'Copy from Existing Server Configurations'", radioButtonCopy.isChecked());

        form.getInputByName(fromInputFormName).setValueAttribute(fromServerName);

        form.submit(null);
    }

    /**
     * Test not conect to Gerrit on startup.
     * @throws Exception Error creating job.
View Full Code Here

        WebClient wc = new WebClient().login("bobby", "bobby");
        try {
            HtmlPage page = wc.goTo(action.getUrlName());
            HtmlForm form = page.getFormByName("theSearch");
            form.getInputByName("queryString").setValueAttribute("2000");
            Page result = form.submit(null);
            assertGoodStatus(result);
        } catch (FailingHttpStatusCodeException e) {
            if (e.getStatusCode() == 403) {
                fail("Bobby should have been able to access the search page");
            } else {
View Full Code Here

        WebClient wc = new WebClient();
        try {
            HtmlPage page = wc.goTo(action.getUrlName());
            HtmlForm form = page.getFormByName("theSearch");
            form.getInputByName("queryString").setValueAttribute("2000");
            form.submit(null);
        } catch (FailingHttpStatusCodeException e) {
            assertEquals(403, e.getStatusCode());
            return;
        }
        fail("Anonymous should not have been able to access the search page");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.