mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/MissionSetupHelper.java
public static void loadMissionToController(final WebDriver driver, final 
            String missionName) throws InterruptedException, ExecutionException, TimeoutException
    {
        WebDriverWait wait = new WebDriverWait(driver, 10);
        
        wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector(
                "input[name='wizForm:programName_editableInput']")));
        
        WebElement programNameDropDown = driver.findElement(
                By.cssSelector("input[name='wizForm:programName_editableInput']"));
        
        assertThat(programNameDropDown, notNullValue());
        
        programNameDropDown.sendKeys(missionName);
        
        WebElement loadMissionButton = driver.findElement(By.cssSelector("button[id='wizForm:loadMission']"));
        
        assertThat(loadMissionButton, notNullValue());
        
        //verify mission load message 
        GrowlVerifier.verifyAndWaitToDisappear(20, loadMissionButton, "Mission Info:");
    }
/**
     * Loads a mission to a controller with a given name. Assumes the current page is the last page of the 
     * mission wizard.
     * @param driver
     *  the web driver currently running
     * @param missionName
     *  the name of the mission that will be loaded
     */
Loads a mission to a controller with a given name. Assumes the current page is the last page of the
mission wizard.
@param driver
the web driver currently running
@param missionName
the name of the mission that will be loaded
Loads a mission to a controller with a given name . Assumes the current page is the last page of the mission wizard . @param driver the web driver currently running @param missionName the name of the mission that will be loaded
public static void loadMissionToController(final WebDriver driver, final 
            String missionName) throws InterruptedException, ExecutionException, TimeoutException
    {
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector(
                "input[name='wizForm:programName_editableInput']")));
        WebElement programNameDropDown = driver.findElement(
                By.cssSelector("input[name='wizForm:programName_editableInput']"));
        assertThat(programNameDropDown, notNullValue());
        programNameDropDown.sendKeys(missionName);
        WebElement loadMissionButton = driver.findElement(By.cssSelector("button[id='wizForm:loadMission']"));
        assertThat(loadMissionButton, notNullValue());
        GrowlVerifier.verifyAndWaitToDisappear(20, loadMissionButton, "Mission Info:");
    }
public static void loadMissionToController ( final WebDriver driver , final String missionName ) throws InterruptedException , ExecutionException , TimeoutException { WebDriverWait wait = new WebDriverWait ( driver , 10 ) ; wait . until ( ExpectedConditions . presenceOfElementLocated ( By . cssSelector ( "input[name='wizForm:programName_editableInput']" ) ) ) ; WebElement programNameDropDown = driver . findElement ( By . cssSelector ( "input[name='wizForm:programName_editableInput']" ) ) ; assertThat ( programNameDropDown , notNullValue ( ) ) ; programNameDropDown . sendKeys ( missionName ) ; WebElement loadMissionButton = driver . findElement ( By . cssSelector ( "button[id='wizForm:loadMission']" ) ) ; assertThat ( loadMissionButton , notNullValue ( ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , loadMissionButton , "Mission Info:" ) ; }
Loads a mission to a controller with a given name.
Loads a mission to a controller with a given name .
//verify mission load message 