Examples of checkSelectedIndex()


Examples of org.seleniuminspector.openfaces.DataTableInspector.checkSelectedIndex()

                    .click();
        click.build().perform();
        for (int i = 0; i < 8; i++) {
            Actions keyDown = new Actions(getDriver()).sendKeys(Keys.ARROW_DOWN);
            keyDown.build().perform();
            singleSelectionDataTable.checkSelectedIndex(i + 1);
        }

        //check selection with the mouse help
        Random rand = new Random();
        for (int i = 0; i < 10; i++) {
View Full Code Here

Examples of org.seleniuminspector.openfaces.DataTableInspector.checkSelectedIndex()

            singleSelectionDataTable.makeAndCheckSingleSelection(0, rand.nextInt(8));
        }

        //check rowData and rowIndex attributes
        DataTableInspector withRowDataTable = dataTable("formID:withRowDataID");
        withRowDataTable.checkSelectedIndex(0);
        DataTableInspector withRowIndexTable = dataTable("formID:withRowIndexID");
        withRowIndexTable.checkSelectedIndex(3);
        element("formID:withRowDataID:2:withRowData_firstBody").click();
        element("formID:withRowIndexID:0:withRowIndex_firstBody").click();
        element("formID:submitID").clickAndWait();
View Full Code Here

Examples of org.seleniuminspector.openfaces.DataTableInspector.checkSelectedIndex()

        //check rowData and rowIndex attributes
        DataTableInspector withRowDataTable = dataTable("formID:withRowDataID");
        withRowDataTable.checkSelectedIndex(0);
        DataTableInspector withRowIndexTable = dataTable("formID:withRowIndexID");
        withRowIndexTable.checkSelectedIndex(3);
        element("formID:withRowDataID:2:withRowData_firstBody").click();
        element("formID:withRowIndexID:0:withRowIndex_firstBody").click();
        element("formID:submitID").clickAndWait();
        withRowDataTable.checkSelectedIndex(2);
        withRowIndexTable.checkSelectedIndex(0);
View Full Code Here

Examples of org.seleniuminspector.openfaces.DataTableInspector.checkSelectedIndex()

        withRowIndexTable.checkSelectedIndex(3);
        element("formID:withRowDataID:2:withRowData_firstBody").click();
        element("formID:withRowIndexID:0:withRowIndex_firstBody").click();
        element("formID:submitID").clickAndWait();
        withRowDataTable.checkSelectedIndex(2);
        withRowIndexTable.checkSelectedIndex(0);
    }

    //todo: row selection checking with 'Ctrl' key is absent
     @Test
    public void testMultipleSelectionAndKeyboardNavigation() {
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.