Package org.xwiki.test.ui.po.editor

Examples of org.xwiki.test.ui.po.editor.ClassEditPage.addProperty()


        classEditor.addProperty("color", "String").setPrettyName("Your favorite color");
        classEditor.clickSaveAndView();

        // Add a new property.
        classEditor = classSheetPage.clickEditClassLink();
        classEditor.addProperty("age", "Number").setPrettyName("Your current age");
        classEditor.clickSaveAndView();

        // We have to wait for the page to load because Selenium doesn't do it all the time when we click on Save & View
        // (even if the Save & View button triggers a plain form submit; there must be something with the JavaScript
        // code that is executed on submit that interferes with Selenium).
View Full Code Here


    public void previewWithSheet()
    {
        // Create the class.
        getUtil().deletePage(getTestClassName(), getTestMethodName() + "Class");
        ClassEditPage classEditor = ClassEditPage.gotoPage(getTestClassName(), getTestMethodName() + "Class");
        classEditor.addProperty("color", "String");

        // Create the sheet.
        getUtil().createPage(getTestClassName(), getTestMethodName() + "Sheet",
            "{{velocity}}$doc.display('color'){{/velocity}}", "");
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.