mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/MissionSetupHelper.java
public static void importMissionAndVerify (final WebDriver driver, String templatePath, String expectedMessage)
    {
        //wait until import button becomes visible and then click it
        GeneralHelper.safeClickBySelector(By.cssSelector("button[id*='importButton']"));

        //Verify that the install bundle dialog is displayed.
        WebElement installDialog = driver.findElement(By.cssSelector("div[id*='importMissionDlg']"));
        GeneralHelper.safeWaitUntil(ExpectedConditions.visibilityOf(installDialog));
        
        //Enter the location of the template to be uploaded.
        WebElement fileUpload = installDialog.findElement(By.cssSelector("input[type='file']"));
        fileUpload.sendKeys(templatePath);
        
        //Ensure that the selected file shows up in dialog
        WebElement files = driver.findElement(By.cssSelector("table[class=files]"));
        GeneralHelper.safeWaitUntil(ExpectedConditions.visibilityOf(files));
        
        //Upload file and verify growl message matches expected message
        WebElement uploadButton = driver.findElement(By.cssSelector(".fileupload-buttonbar>button:first-of-type"));
        GrowlVerifier.verifyNoWait(2, uploadButton, expectedMessage);
    }
/**
     * Method for importing mission templates and verifying the growl message title resulting from the type
     * of template imported.
     * @param driver
     *         the web driver performing the test
     * @param templatePath
     *         the path of the template to be uploaded to the web GUI
     * @param expectedMessage
     *         the expected title of the growl message as a result of the type of template uploaded
     */
Method for importing mission templates and verifying the growl message title resulting from the type
of template imported.
@param driver
the web driver performing the test
@param templatePath
the path of the template to be uploaded to the web GUI
@param expectedMessage
the expected title of the growl message as a result of the type of template uploaded
Method for importing mission templates and verifying the growl message title resulting from the type of template imported . @param driver the web driver performing the test @param templatePath the path of the template to be uploaded to the web GUI @param expectedMessage the expected title of the growl message as a result of the type of template uploaded
public static void importMissionAndVerify (final WebDriver driver, String templatePath, String expectedMessage)
    {
        GeneralHelper.safeClickBySelector(By.cssSelector("button[id*='importButton']"));
        WebElement installDialog = driver.findElement(By.cssSelector("div[id*='importMissionDlg']"));
        GeneralHelper.safeWaitUntil(ExpectedConditions.visibilityOf(installDialog));
        WebElement fileUpload = installDialog.findElement(By.cssSelector("input[type='file']"));
        fileUpload.sendKeys(templatePath);
        WebElement files = driver.findElement(By.cssSelector("table[class=files]"));
        GeneralHelper.safeWaitUntil(ExpectedConditions.visibilityOf(files));
        WebElement uploadButton = driver.findElement(By.cssSelector(".fileupload-buttonbar>button:first-of-type"));
        GrowlVerifier.verifyNoWait(2, uploadButton, expectedMessage);
    }
public static void importMissionAndVerify ( final WebDriver driver , String templatePath , String expectedMessage ) { GeneralHelper . safeClickBySelector ( By . cssSelector ( "button[id*='importButton']" ) ) ; WebElement installDialog = driver . findElement ( By . cssSelector ( "div[id*='importMissionDlg']" ) ) ; GeneralHelper . safeWaitUntil ( ExpectedConditions . visibilityOf ( installDialog ) ) ; WebElement fileUpload = installDialog . findElement ( By . cssSelector ( "input[type='file']" ) ) ; fileUpload . sendKeys ( templatePath ) ; WebElement files = driver . findElement ( By . cssSelector ( "table[class=files]" ) ) ; GeneralHelper . safeWaitUntil ( ExpectedConditions . visibilityOf ( files ) ) ; WebElement uploadButton = driver . findElement ( By . cssSelector ( ".fileupload-buttonbar>button:first-of-type" ) ) ; GrowlVerifier . verifyNoWait ( 2 , uploadButton , expectedMessage ) ; }
Method for importing mission templates and verifying the growl message title resulting from the type
 of template imported.
Method for importing mission templates and verifying the growl message title resulting from the type of template imported .
//wait until import button becomes visible and then click it //Verify that the install bundle dialog is displayed. //Enter the location of the template to be uploaded. //Ensure that the selected file shows up in dialog //Upload file and verify growl message matches expected message