ElementInspector tabbedPane = element("fn:tabbedPaneID");
tabbedPane.assertElementExists(false);
foldingPanel("fn:tabbedPaneFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
tabbedPane.assertElementExists(true);
tabbedPane.assertVisible(true);
element("fn:firstHeader").assertText("First tab");
element("fn:firstContent").assertText("Some text on the first tab");
ElementInspector secondHeader = element("fn:secondHeader");
secondHeader.assertText("Second tab");