mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/CommsAddDialogHelper.java
public static void selectBackCommsLayerPage(final WebDriver driver)
    {
        WebElement here = driver.findElement(
                By.cssSelector("th[id*='addCommsForm:addAccordion:transportData_paginator_top']"));
        int counter = 0;

        for (WebElement looking : here.findElements(By.tagName("span")))
        {
            if (counter == 2)
            {
                looking.click();

                // Opening the Specs page
                WebElement specsButton = driver.findElement(
                        By.cssSelector("button[id*='addCommsForm:addAccordion:transportData:0:transSpecs']"));
                specsButton.click();
                
                // Closing the Specs page
                WebElement capabilHeader = driver.findElement(By.cssSelector("div[id*='CapabilitiesHeader']"));
                WebElement closeDialog = capabilHeader.findElement(
                        By.cssSelector("span[class='ui-icon ui-icon-closethick']"));
                closeDialog.click();
                break;
            }
            counter++;
        }
    }
/**
     * Helper to select back page in the Add Comms Stack Dialog.
     * 
     * @param driver
     *            Instance of the {@link WebDriver} on which the comms stack will be made.
     */
Helper to select back page in the Add Comms Stack Dialog.

@param driver
Instance of the  WebDriver on which the comms stack will be made.
Helper to select back page in the Add Comms Stack Dialog . @param driver Instance of the WebDriver on which the comms stack will be made .
public static void selectBackCommsLayerPage(final WebDriver driver)
    {
        WebElement here = driver.findElement(
                By.cssSelector("th[id*='addCommsForm:addAccordion:transportData_paginator_top']"));
        int counter = 0;
        for (WebElement looking : here.findElements(By.tagName("span")))
        {
            if (counter == 2)
            {
                looking.click();
                WebElement specsButton = driver.findElement(
                        By.cssSelector("button[id*='addCommsForm:addAccordion:transportData:0:transSpecs']"));
                specsButton.click();
                WebElement capabilHeader = driver.findElement(By.cssSelector("div[id*='CapabilitiesHeader']"));
                WebElement closeDialog = capabilHeader.findElement(
                        By.cssSelector("span[class='ui-icon ui-icon-closethick']"));
                closeDialog.click();
                break;
            }
            counter++;
        }
    }
public static void selectBackCommsLayerPage ( final WebDriver driver ) { WebElement here = driver . findElement ( By . cssSelector ( "th[id*='addCommsForm:addAccordion:transportData_paginator_top']" ) ) ; int counter = 0 ; for ( WebElement looking : here . findElements ( By . tagName ( "span" ) ) ) { if ( counter == 2 ) { looking . click ( ) ; WebElement specsButton = driver . findElement ( By . cssSelector ( "button[id*='addCommsForm:addAccordion:transportData:0:transSpecs']" ) ) ; specsButton . click ( ) ; WebElement capabilHeader = driver . findElement ( By . cssSelector ( "div[id*='CapabilitiesHeader']" ) ) ; WebElement closeDialog = capabilHeader . findElement ( By . cssSelector ( "span[class='ui-icon ui-icon-closethick']" ) ) ; closeDialog . click ( ) ; break ; } counter ++ ; } }
Helper to select back page in the Add Comms Stack Dialog.
Helper to select back page in the Add Comms Stack Dialog .
// Opening the Specs page // Closing the Specs page