mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/CommsAddDialogHelper.java
private static boolean isTabActive(WebDriver driver, String tabText)
    {
        if (tabText.contains("Physical Link"))
        {
            return driver.findElement(By.cssSelector("div[id$='physTab']")).isDisplayed();
        }
        else if (tabText.contains("Link Layer"))
        {
            return driver.findElement(By.cssSelector("div[id$='linkTab']")).isDisplayed();
        }
        return driver.findElement(By.cssSelector("div[id$='transTab']")).isDisplayed();
    }
/**
     * Helper method for determining whether or not a tab is open.
     * 
     * @param driver
     *            Instance of the {@link WebDriver} on which the comms stack will be made.
     * @param tabText
     *            Header text for a tab. Used to identify which tab content to check.
     * @return <code>true</code>
     */
Helper method for determining whether or not a tab is open.

@param driver
Instance of the  WebDriver on which the comms stack will be made.
@param tabText
Header text for a tab. Used to identify which tab content to check.
@return true
Helper method for determining whether or not a tab is open . @param driver Instance of the WebDriver on which the comms stack will be made . @param tabText Header text for a tab . Used to identify which tab content to check . @return true
private static boolean isTabActive(WebDriver driver, String tabText)
    {
        if (tabText.contains("Physical Link"))
        {
            return driver.findElement(By.cssSelector("div[id$='physTab']")).isDisplayed();
        }
        else if (tabText.contains("Link Layer"))
        {
            return driver.findElement(By.cssSelector("div[id$='linkTab']")).isDisplayed();
        }
        return driver.findElement(By.cssSelector("div[id$='transTab']")).isDisplayed();
    }
private static boolean isTabActive ( WebDriver driver , String tabText ) { if ( tabText . contains ( "Physical Link" ) ) { return driver . findElement ( By . cssSelector ( "div[id$='physTab']" ) ) . isDisplayed ( ) ; } else if ( tabText . contains ( "Link Layer" ) ) { return driver . findElement ( By . cssSelector ( "div[id$='linkTab']" ) ) . isDisplayed ( ) ; } return driver . findElement ( By . cssSelector ( "div[id$='transTab']" ) ) . isDisplayed ( ) ; }
Helper method for determining whether or not a tab is open.
Helper method for determining whether or not a tab is open .