mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/asset/TestAssetObservations.java
@Test
    public void testRemoveObsevation() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 5);
        
        //list of all the panels
        wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.cssSelector("div[id$='observationPanel']")));
        
        //list of all trash cans
        List<WebElement> trashCans = m_Driver.findElements(By.cssSelector("button[id*='remObs']"));
        //verify we can remove an observation
        trashCans.get(0).click();
        
        //Confirm removal of observation.
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("button[id$='removeObservation']")));
        WebElement removeObsButton = m_Driver.findElement(By.cssSelector("button[id$='removeObservation']"));
        
        //Wait till observation is deleted
        GrowlVerifier.verifyAndWaitToDisappear(20, removeObsButton, "Observations Removed");
    }
/**
     * Verify that an observation can be removed and that it will no longer be displayed.
     */
Verify that an observation can be removed and that it will no longer be displayed.
Verify that an observation can be removed and that it will no longer be displayed .
@Test
    public void testRemoveObsevation() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 5);
        wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.cssSelector("div[id$='observationPanel']")));
        List<WebElement> trashCans = m_Driver.findElements(By.cssSelector("button[id*='remObs']"));
        trashCans.get(0).click();
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("button[id$='removeObservation']")));
        WebElement removeObsButton = m_Driver.findElement(By.cssSelector("button[id$='removeObservation']"));
        GrowlVerifier.verifyAndWaitToDisappear(20, removeObsButton, "Observations Removed");
    }
@ Test public void testRemoveObsevation ( ) throws InterruptedException , ExecutionException , TimeoutException { WebDriverWait wait = new WebDriverWait ( m_Driver , 5 ) ; wait . until ( ExpectedConditions . presenceOfAllElementsLocatedBy ( By . cssSelector ( "div[id$='observationPanel']" ) ) ) ; List < WebElement > trashCans = m_Driver . findElements ( By . cssSelector ( "button[id*='remObs']" ) ) ; trashCans . get ( 0 ) . click ( ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "button[id$='removeObservation']" ) ) ) ; WebElement removeObsButton = m_Driver . findElement ( By . cssSelector ( "button[id$='removeObservation']" ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , removeObsButton , "Observations Removed" ) ; }
Verify that an observation can be removed and that it will no longer be displayed.
Verify that an observation can be removed and that it will no longer be displayed .
//list of all the panels //list of all trash cans //verify we can remove an observation //Confirm removal of observation. //Wait till observation is deleted