Package org.seleniuminspector.html

Examples of org.seleniuminspector.html.TableCellInspector


    private void verifyStyles(TabSetInspector tabSet, int selectedTabIndex) {
        ElementInspector firstTab = tabSet.tabs().get(0);
        ElementInspector secondTab = tabSet.tabs().get(1);
        TableInspector tabSetAsTable = new TableInspector(tabSet);
        TableCellInspector emptySpaceCell = tabSetAsTable.body().row(0).cell(4);

        emptySpaceCell.assertStyle("background: beige");

        // backBorderStyle="2px solid SpringGreen"
        if (selectedTabIndex == 0) {
            secondTab.assertStyle("border-left: 2px solid SpringGreen; border-right: 2px solid SpringGreen;");
        } else if (selectedTabIndex == 1) {
            firstTab.assertStyle("border-left: 2px solid SpringGreen; border-right: 2px solid SpringGreen");
        }

        // frontBorderStyle="3px dashed OliveDrab"
        if (selectedTabIndex == 0) {
            secondTab.assertStyle("border-bottom: 3px dashed OliveDrab");
            firstTab.assertStyle("border-right: 3px dashed OliveDrab");
        } else if (selectedTabIndex == 1) {
            firstTab.assertStyle("border-bottom: 3px dashed OliveDrab");
            secondTab.assertStyle("border-right: 3px dashed OliveDrab");
        }

        emptySpaceCell.assertStyle("border-bottom: 3px dashed OliveDrab");

        tabSetAsTable.body().row(0).cell(0).assertStyle("border-bottom: 3px dashed OliveDrab");

        // tabStyle="background: azure; border-top: 1px dotted darkgreen; width: 70px;"
        if (selectedTabIndex == 0) {
View Full Code Here


        // ondblclick
        dataTable("fn:second").body().row(0).cell(0).doubleClick();
        assertTrue(selenium.isTextPresent("ondblclick works"));
        assertTrue(selenium.isTextPresent("dblclick"));

        TableCellInspector thirdTableCell = dataTable("fn:third").body().row(0).cell(0);
        // onmousedown
        thirdTableCell.mouseDown();
        assertTrue(selenium.isTextPresent("onmousedown works"));
        assertTrue(selenium.isTextPresent("mousedown"));

        // onmouseup
        thirdTableCell.mouseUp();
        assertTrue(selenium.isTextPresent("onmouseup works"));
        assertTrue(selenium.isTextPresent("mouseup"));

        // onmouseover
        dataTable("fn:fourth").body().row(0).cell(0).mouseOver();
View Full Code Here

TOP

Related Classes of org.seleniuminspector.html.TableCellInspector

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.