Package com.thoughtworks.selenium

Examples of com.thoughtworks.selenium.Selenium.click()


    // JSFC-1746 Exception after "Clear selection" for Data Table
     @Test
    public void testNoExceptionAfterClientClearSelection() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/tableDemo.jsf");
        selenium.click("form1:clearSelectionLink");
        selenium.click("//input[@value='Show Checked Users (via form submit) ->']");
        waitForPageToLoad();
        assertEquals("Table Demo", selenium.getTitle());
    }
View Full Code Here


     @Test
    public void testNoExceptionAfterClientClearSelection() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/tableDemo.jsf");
        selenium.click("form1:clearSelectionLink");
        selenium.click("//input[@value='Show Checked Users (via form submit) ->']");
        waitForPageToLoad();
        assertEquals("Table Demo", selenium.getTitle());
    }

}
View Full Code Here

        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/tabbedpane/tabbedPaneChangeSelectionStyling.jsf");
        TabbedPaneInspector tabbedPane = tabbedPane("formID:clientTP");

        // check getSelectedIndex()
        selenium.click("clientGetSelected");
        assertEquals("0", selenium.getText("empty_client"));
        verifyStyles(tabbedPane, 0);

        // check setSelectedIndex()
        selenium.click("clientSetSelected");
View Full Code Here

        selenium.click("clientGetSelected");
        assertEquals("0", selenium.getText("empty_client"));
        verifyStyles(tabbedPane, 0);

        // check setSelectedIndex()
        selenium.click("clientSetSelected");
        selenium.click("clientGetSelected");
        assertEquals("1", selenium.getText("empty_client"));
        verifyStyles(tabbedPane, 1);
    }
View Full Code Here

        assertEquals("0", selenium.getText("empty_client"));
        verifyStyles(tabbedPane, 0);

        // check setSelectedIndex()
        selenium.click("clientSetSelected");
        selenium.click("clientGetSelected");
        assertEquals("1", selenium.getText("empty_client"));
        verifyStyles(tabbedPane, 1);
    }

    //todo: uncomment when JSFC-3626 is fixed
View Full Code Here

        assertTrue(selenium.getText("fn:firstHeader").equals("First tab"));
        assertTrue(selenium.getText("fn:secondHeader").equals("Second tab"));
        assertTrue(selenium.getText("fn:firstItem_firstHeader").equals("First tab"));
        assertTrue(selenium.getText("fn:firstItem_secondHeader").equals("Second tab"));
        assertTrue(selenium.getText("fn:firstItem_firstContent").equals("Some text on the first tab"));
        selenium.click("fn:firstItem_secondHeader");
        assertTrue(selenium.getText("fn:firstItem_secondContent").equals("Some text on the second tab"));

        selenium.click("fn:secondHeader");
        assertTrue(selenium.isVisible("fn:secondItem"));
        assertTrue(selenium.getText("fn:secondItem_firstHeader").equals("First tab"));
View Full Code Here

        assertTrue(selenium.getText("fn:firstItem_secondHeader").equals("Second tab"));
        assertTrue(selenium.getText("fn:firstItem_firstContent").equals("Some text on the first tab"));
        selenium.click("fn:firstItem_secondHeader");
        assertTrue(selenium.getText("fn:firstItem_secondContent").equals("Some text on the second tab"));

        selenium.click("fn:secondHeader");
        assertTrue(selenium.isVisible("fn:secondItem"));
        assertTrue(selenium.getText("fn:secondItem_firstHeader").equals("First tab"));
        assertTrue(selenium.getText("fn:secondItem_secondHeader").equals("Second tab"));
        assertTrue(selenium.getText("fn:secondItem_firstContent").equals("Some text on the first tab"));
        selenium.click("fn:secondItem_secondHeader");
View Full Code Here

        selenium.click("fn:secondHeader");
        assertTrue(selenium.isVisible("fn:secondItem"));
        assertTrue(selenium.getText("fn:secondItem_firstHeader").equals("First tab"));
        assertTrue(selenium.getText("fn:secondItem_secondHeader").equals("Second tab"));
        assertTrue(selenium.getText("fn:secondItem_firstContent").equals("Some text on the first tab"));
        selenium.click("fn:secondItem_secondHeader");
        assertTrue(selenium.getText("fn:secondItem_secondContent").equals("Some text on the second tab"));
    }

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

        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");

        secondTabSetSecondTab.click();
        secondTabSetSecondTab.assertText("Server");
View Full Code Here

        assertTrue(selenium.getText("fn:firstHeader").equals("First tab"));
        assertTrue(selenium.getText("fn:secondHeader").equals("Second tab"));
        assertTrue(selenium.getText("fn:firstItem_firstHeader").equals("First tab"));
        assertTrue(selenium.getText("fn:firstItem_secondHeader").equals("Second tab"));
        assertTrue(selenium.getText("fn:firstItem_firstContent").equals("Some text on the first tab"));
        selenium.click("fn:firstItem_secondHeader");
        waitForPageToLoad();
        assertTrue(selenium.getText("fn:firstItem_secondContent").equals("Some text on the second tab"));

        selenium.click("fn:secondHeader");
        waitForPageToLoad();
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.