public Tab getSelectedTab() {
        WebElement selectedTabHeader = findElement(By.className("ui-tabs-selected"));
        int index = getIndexOfHeader(selectedTabHeader);

        return getTabs().get(index);
    }
Provides the selected {@link TabView} tab.

@return the selected tab
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/TabView.java