private Integer getIndexOfHeader(WebElement headerElt) {
        return Integer.parseInt(headerElt.getDomAttribute("data-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