public boolean setActiveWithExtJS() {
        String baseTabPath = "//*[" + getPathBuilder().getBasePath() + "]";
        WebLocator tabElement = new WebLocator(getPathBuilder().getContainer()).setElPath(baseTabPath);
        String id = tabElement.getAttributeId();
        String path = "//*[@id='" + id + "']//*[contains(@class, 'x-tab-strip-inner')]";
        int tabIndex = getTabIndex(getPathBuilder().getText(), path);
        String script = "return Ext.getCmp('" + id + "').setActiveTab(" + tabIndex + ");";
        LOGGER.warn("force TabPanel setActive with js: " + script);
        WebLocatorUtils.doExecuteScript(script);
        return true;
    }
public boolean setActiveWithExtJS ( ) { String baseTabPath = "//*[" + getPathBuilder ( ) . getBasePath ( ) + "]" ; WebLocator tabElement = new WebLocator ( getPathBuilder ( ) . getContainer ( ) ) . setElPath ( baseTabPath ) ; String id = tabElement . getAttributeId ( ) ; String path = "//*[@id='" + id + "']//*[contains(@class, 'x-tab-strip-inner')]" ; int tabIndex = getTabIndex ( getPathBuilder ( ) . getText ( ) , path ) ; String script = "return Ext.getCmp('" + id + "').setActiveTab(" + tabIndex + ");" ; LOGGER . warn ( "force TabPanel setActive with js: " + script ) ; WebLocatorUtils . doExecuteScript ( script ) ; return true ; }
TO Be used in extreme cases when simple {@link #setActive()} is not working

@return true or false