Package org.xwiki.test.ui.administration.elements

Examples of org.xwiki.test.ui.administration.elements.AdministrationSectionPage


        registerPage.gotoPage();

        // Switch LiveValidation on or off as needed.
        int x = 0;
        while (registerPage.liveValidationEnabled() != useLiveValidation()) {
            AdministrationSectionPage sectionPage = new AdministrationSectionPage("Registration");
            getDriver().get(getUtil().getURLToLoginAsAdminAndGotoPage(sectionPage.getURL()));
            getUtil().recacheSecretToken();
            getUtil().assertOnPage(sectionPage.getURL());
            sectionPage.getForm().setFieldValue(By.name("XWiki.Registration_0_liveValidation_enabled"),
                Boolean.valueOf(useLiveValidation()).toString());
            sectionPage.clickSave();
            if (x > 2) {
                throw new WebDriverException("Unable to set useLiveValidation to " + useLiveValidation());
            }
            x++;
            registerPage.gotoPage();
View Full Code Here

TOP

Related Classes of org.xwiki.test.ui.administration.elements.AdministrationSectionPage

Copyright © 2018 www.massapicom. 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.