Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.click()


        serverValidationSubmit.click();
        waitForPageToLoad();
        isPassedStandardInputs(serverValidationFormName);
        //client-side passed
        new InputInspector(clientValidationFormName + "inputSecret").type("password");
        clientValidationSubmit.click();
        waitForPageToLoad();
        isPassedStandardInputs(clientValidationFormName);
    }

    private void fillDataStandardInputs(String formName) {
View Full Code Here


        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/dataTable_events.jsf");

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

        //onmousedown
        first.mouseDown();
View Full Code Here

    public void testOnchangeForDataTableSelection() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/selectionOnChange.jsf");

        ElementInspector multiple = dataTable("fn:multiple").column(0).bodyCell(0);
        multiple.click();
        multiple.keyDown(KeyEvent.VK_DOWN);
        assertTrue(selenium.isTextPresent("multiple selection onchange works"));
        assertTrue(selenium.isTextPresent("multiple change"));

        ElementInspector single = dataTable("fn:single").column(0).bodyCell(0);
View Full Code Here

        multiple.keyDown(KeyEvent.VK_DOWN);
        assertTrue(selenium.isTextPresent("multiple selection onchange works"));
        assertTrue(selenium.isTextPresent("multiple change"));

        ElementInspector single = dataTable("fn:single").column(0).bodyCell(0);
        single.click();
        single.keyDown(KeyEvent.VK_DOWN);
        assertTrue(selenium.isTextPresent("single selection onchange works"));

        assertTrue(selenium.isTextPresent("single change"));
    }
View Full Code Here

        suggestionField.keyPress('a');
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        dropDownItem0.assertVisible(true);
        dropDownItem1.assertVisible(true);
        dropDownItem2.assertVisible(true);
        dropDownItem2.click();
        sleep(200);
        selenium.submit("formID");
        waitForPageToLoad();
        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
View Full Code Here

    public void testClientSideAPI() {
        testAppFunctionalPage("/components/twolistselection/TLSJSFunctions.jsf");

        ElementInspector getValueButton = element("getValue");

        getValueButton.click();
        ElementInspector getOutputDiv = element("getOutput");
        getOutputDiv.assertText("itemV_3,itemV_5");
        TwoListSelectionInspector tls = twoListSelection("formID:withJSFunctions");
        checkLabelsCorrectness(tls, new String[]{"itemL_1", "itemL_2", "itemL_4", "itemL_6"},
                new String[]{"itemL_3", "itemL_5"}, null, null);
View Full Code Here

        testAppFunctionalPage("/components/popuplayer/popupLayer_a4j.jsf");
        PopupLayerInspector popupLayer = popupLayer("formID:popupLayer_a4j_ID");
        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        ElementInspector button = element("formID:button_a4j_ID");
        button.click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        ElementInspector popupCloser = element("formID:popup_a4j_Closer");
        popupCloser.click();
        popupLayer.assertVisible(false);
View Full Code Here

        ElementInspector button = element("formID:button_a4j_ID");
        button.click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        ElementInspector popupCloser = element("formID:popup_a4j_Closer");
        popupCloser.click();
        popupLayer.assertVisible(false);
        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        button.click();
        String newValue = popupLayer.text();
View Full Code Here

        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        button.click();
        String newValue = popupLayer.text();
        popupLayer.assertVisible(true);
        popupCloser.click();
        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        assertFalse(newValue.equals(oldValue));
    }
View Full Code Here

        InputInspector leftCoordinateInput = new InputInspector("leftCoodinate");
        leftCoordinateInput.type("100");
        InputInspector topCoordinateInput = new InputInspector("topCoodinate");
        topCoordinateInput.type("200");
        ElementInspector topLeftButton = element("setPopupLayerTopLeft");
        topLeftButton.click();

        popupLayer.assertVisible(true);
        element("formID:submit").clickAndWait();
        popupLayer.assertVisible(true);
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.