}
@Test
public void testTabbedPaneAjax() throws Exception {
testAppFunctionalPage("/components/tabbedpane/tabbedPaneAjax.jsf");
ElementInspector tab1Output = element("form1:tab1Output");
tab1Output.assertElementExists(true);
ElementInspector tab2Output = element("form1:tab2Output");
tab2Output.assertElementExists(false);
ElementInspector tab3Output = element("form1:tab3Output");
tab3Output.assertElementExists(false);
ElementInspector tab4Output = element("form1:tab4Output");
tab4Output.assertElementExists(false);
List<ElementInspector> tabs = tabbedPane("form1:tp1").tabSet().tabs();
tabs.get(1).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
tab2Output.assertElementExists(true);
tabs.get(2).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
tab3Output.assertElementExists(true);
tabs.get(3).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
tab4Output.assertElementExists(true);
tabs.get(0).click();
tab1Output.assertElementExists(true);
}