@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Tab)) {
            return false;
        }
        Tab tab = (Tab) o;
        return Objects.equals(getTitle(), tab.getTitle()) &&
                    Objects.equals(getIndex(), tab.getIndex());
    }
Component wrapper for the PrimeFaces {@code p:tab}.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/model/Tab.java