mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/MissionHelper.java
public static void executeStopOnMission(final WebDriver driver, final String missionName) throws 
        InterruptedException, ExecutionException, TimeoutException
    {
        WebElement theMissionCard = MissionHelper.findCorrectRunningMissionCard(driver, missionName);
        assertThat(theMissionCard, notNullValue());
        
        WebElement stopButton = theMissionCard.findElement(By.cssSelector("button[id*='stopButton']"));
        
        assertThat(stopButton, notNullValue());
        
        //stop mission
        GrowlVerifier.verifyAndWaitToDisappear(20, stopButton, "Mission Status Updated", "Mission Shutdown");
    }
/**
     * Function to find and stop 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 stop 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 stop 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 executeStopOnMission(final WebDriver driver, final String missionName) throws 
        InterruptedException, ExecutionException, TimeoutException
    {
        WebElement theMissionCard = MissionHelper.findCorrectRunningMissionCard(driver, missionName);
        assertThat(theMissionCard, notNullValue());
        WebElement stopButton = theMissionCard.findElement(By.cssSelector("button[id*='stopButton']"));
        assertThat(stopButton, notNullValue());
        GrowlVerifier.verifyAndWaitToDisappear(20, stopButton, "Mission Status Updated", "Mission Shutdown");
    }
public static void executeStopOnMission ( final WebDriver driver , final String missionName ) throws InterruptedException , ExecutionException , TimeoutException { WebElement theMissionCard = MissionHelper . findCorrectRunningMissionCard ( driver , missionName ) ; assertThat ( theMissionCard , notNullValue ( ) ) ; WebElement stopButton = theMissionCard . findElement ( By . cssSelector ( "button[id*='stopButton']" ) ) ; assertThat ( stopButton , notNullValue ( ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , stopButton , "Mission Status Updated" , "Mission Shutdown" ) ; }
Function to find and stop a mission based on a mission name.
Function to find and stop a mission based on a mission name .
//stop mission