mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/CommsAddDialogHelper.java
public static WebElement layerSelectHelper(WebDriver driver, String tabText, final String layerType)
            throws InterruptedException
    {
        if (!isTabActive(driver, tabText))
        {
            for (WebElement tab : driver.findElements(By.cssSelector("h3[role='tab']")))
            {
                if (tab.getText().contains(tabText))
                {
                    tab.click();
                    // Thread sleep needed to allow for the tab panel to open.
                    Thread.sleep(3000);
                    break;
                }
            }
        }
        if (layerType != null)
        {
            // Return the specified comm type.
            return retrieveCommsLayerType(driver, layerType);
        }
        return null;
    }
/**
     * Helper method opens layer tab and selects a layer on the Add Comms Stack Dialog. If given layer type is
     * <code>null</code>, method only opens layer tab.
     * 
     * @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 and open one of the three tabs on the add comms dialog.
     * @param layerType
     *            type of the layer to be selected from the list of available types
     */
Helper method opens layer tab and selects a layer on the Add Comms Stack Dialog. If given layer type is
null, method only opens layer tab.

@param driver
Instance of the  WebDriver on which the comms stack will be made.
@param tabText
Header text for a tab. Used to identify and open one of the three tabs on the add comms dialog.
@param layerType
type of the layer to be selected from the list of available types
Helper method opens layer tab and selects a layer on the Add Comms Stack Dialog . If given layer type is null method only opens layer tab . @param driver Instance of the WebDriver on which the comms stack will be made . @param tabText Header text for a tab . Used to identify and open one of the three tabs on the add comms dialog . @param layerType type of the layer to be selected from the list of available types
public static WebElement layerSelectHelper(WebDriver driver, String tabText, final String layerType)
            throws InterruptedException
    {
        if (!isTabActive(driver, tabText))
        {
            for (WebElement tab : driver.findElements(By.cssSelector("h3[role='tab']")))
            {
                if (tab.getText().contains(tabText))
                {
                    tab.click();
                    Thread.sleep(3000);
                    break;
                }
            }
        }
        if (layerType != null)
        {
            return retrieveCommsLayerType(driver, layerType);
        }
        return null;
    }
public static WebElement layerSelectHelper ( WebDriver driver , String tabText , final String layerType ) throws InterruptedException { if ( ! isTabActive ( driver , tabText ) ) { for ( WebElement tab : driver . findElements ( By . cssSelector ( "h3[role='tab']" ) ) ) { if ( tab . getText ( ) . contains ( tabText ) ) { tab . click ( ) ; Thread . sleep ( 3000 ) ; break ; } } } if ( layerType != null ) { return retrieveCommsLayerType ( driver , layerType ) ; } return null ; }
Helper method opens layer tab and selects a layer on the Add Comms Stack Dialog.
Helper method opens layer tab and selects a layer on the Add Comms Stack Dialog .
// Thread sleep needed to allow for the tab panel to open. // Return the specified comm type.