mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/MissionHelper.java
public static void executeRemoveOnMission(final WebDriver driver, final String missionName) throws 
        InterruptedException, ExecutionException, TimeoutException
    {
        WebElement theMissionCard = MissionHelper.findCorrectRunningMissionCard(driver, missionName);
        assertThat(theMissionCard, notNullValue());
        
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("button[id*='removeButton']")));
        WebElement removeButton = theMissionCard.findElement(By.cssSelector("button[id*='removeButton']"));
        assertThat(removeButton, notNullValue());
        
        //verify removed mission message
        GrowlVerifier.verifyAndWaitToDisappear(20, removeButton, "Mission Removed!");
    }
/**
     * Function to find and remove a mission based on a mission name.
     * @param driver
     *  the web driver that is to be used
     * @param missionName
     *  the name of the mission that is to be removed
     */
Function to find and remove a mission based on a mission name.
@param driver
the web driver that is to be used
@param missionName
the name of the mission that is to be removed
Function to find and remove a mission based on a mission name . @param driver the web driver that is to be used @param missionName the name of the mission that is to be removed
public static void executeRemoveOnMission(final WebDriver driver, final String missionName) throws 
        InterruptedException, ExecutionException, TimeoutException
    {
        WebElement theMissionCard = MissionHelper.findCorrectRunningMissionCard(driver, missionName);
        assertThat(theMissionCard, notNullValue());
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("button[id*='removeButton']")));
        WebElement removeButton = theMissionCard.findElement(By.cssSelector("button[id*='removeButton']"));
        assertThat(removeButton, notNullValue());
        GrowlVerifier.verifyAndWaitToDisappear(20, removeButton, "Mission Removed!");
    }
public static void executeRemoveOnMission ( final WebDriver driver , final String missionName ) throws InterruptedException , ExecutionException , TimeoutException { WebElement theMissionCard = MissionHelper . findCorrectRunningMissionCard ( driver , missionName ) ; assertThat ( theMissionCard , notNullValue ( ) ) ; WebDriverWait wait = new WebDriverWait ( driver , 10 ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "button[id*='removeButton']" ) ) ) ; WebElement removeButton = theMissionCard . findElement ( By . cssSelector ( "button[id*='removeButton']" ) ) ; assertThat ( removeButton , notNullValue ( ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , removeButton , "Mission Removed!" ) ; }
Function to find and remove a mission based on a mission name.
Function to find and remove a mission based on a mission name .
//verify removed mission message