Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.click()


        TableSectionInspector body = body();
        for (int i = 0; i < body.rowCount(); i++) {
            TreeTableRowInspector row = (TreeTableRowInspector) body.row(i);
            ElementInspector expansionToggle = row.expansionToggle();
            if (expansionToggle != null) {
                expansionToggle.click();
                loadingMode.waitForLoad();
            }
        }
    }
View Full Code Here


            List<ElementInspector> toggles = getElementsByTagName("img");
            if (i >= toggles.size())
                break;
            ElementInspector toggle = toggles.get(i);
            if (TreeTableRenderer.DEFAULT_TOGGLE_CLASS_NAME.equals(toggle.className())) {
                toggle.click();
                loadingMode.waitForLoad();
            }
            i++;
        }
View Full Code Here

        textArea.assertValue("Some text");
        for (int i = 0; i < "Some text".length(); i++)
            textArea.keyPress(Keys.BACK_SPACE);
//        textArea.type("");
        dmf.assertElementExists(false);
        button.click();
        dmf.assertElementExists(true);
    }
}
View Full Code Here

    // JSFC-1903 Infinite recursion in JS on invoking Confirmation by "invokerID" attribute
     @Test
    public void testConfirmationWithInvokerId() {
        testAppFunctionalPage("/requests/JSFC-1903.jsf");
        ElementInspector button = element("button1");
        button.click();

        ConfirmationInspector confirmation = confirmation("form1:conf1");
        confirmation.cancelButton().click();
        button.click();
        confirmation.okButton().click();
View Full Code Here

        ElementInspector button = element("button1");
        button.click();

        ConfirmationInspector confirmation = confirmation("form1:conf1");
        confirmation.cancelButton().click();
        button.click();
        confirmation.okButton().click();
        assertEquals("!", window().document().getAlert());
        acceptAlert();
    }
}
View Full Code Here

        ElementInspector secondTab = tabbedPane.tabSet().tabs().get(1);

        verifyStyles(tabbedPane, 0);

        ElementInspector getSelectedElement = element(loadingMode + "GetSelected");
        getSelectedElement.click();
        ElementInspector emptyElement = element("empty_" + loadingMode);
        emptyElement.assertText("0");
        firstPane.assertText("First tab content");

        secondTab.click();
View Full Code Here

        testAppFunctionalPage("/components/tabbedpane/tabSetIn.jsf");
        tabSet("fn:loadingModes").setTabIndex(1, ServerLoadingMode.getInstance());
        element("fn:firstTabSet_firstTab").assertText("Client");
        ElementInspector firstTabSetSecondTab = element("fn:firstTabSet_secondTab");

        firstTabSetSecondTab.click();
        firstTabSetSecondTab.assertText("Server");

        selenium.click("fn:secondHeader");
        element("fn:secondTabSet_firstTab").assertText("Client");
        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");
View Full Code Here

        selenium.click("fn:secondHeader");
        element("fn:secondTabSet_firstTab").assertText("Client");
        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");

        secondTabSetSecondTab.click();
        secondTabSetSecondTab.assertText("Server");
    }

     @Test
    public void testTreeTableInside() {
View Full Code Here

        //todo: uncomment if JSFC-1453 fixed
        //assertTrue(selenium.isTextPresent("focus"));

        ElementInspector treeTable = element("fn:eventsTreeTable");
        //onclick
        treeTable.click();
        assertTrue(selenium.isTextPresent("onclick works"));
        assertTrue(selenium.isTextPresent("click"));

        //onblur
        //todo: selenium can set focus to the several page elements in own FF instance, so event not fired. Problem unresolved yet.
View Full Code Here

        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/treetable/treeTable_entireColumn.jsf");

        ElementInspector treeTable = element("fn:treeTable");
        //onclick
        treeTable.click();
        assertTrue(selenium.isTextPresent("onclick works"));
        assertTrue(selenium.isTextPresent("click"));

        //ondblclick
        treeTable.doubleClick();
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.