mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationFilterHelper.java
public static void executeObservationDeletion(final WebDriver driver) throws InterruptedException
    {
        Thread.sleep(1000);
        //check if the element is visible
        WebElement deleteButton = isWebElementVisible(
                driver, "button[id$='tabView:obsQueryPanel:obsAccordion:deleteObs']");
        
        deleteButton.click();
        
        WebDriverWait wait = new WebDriverWait(driver, 10);
        
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("div[id='obsRemoveDlg']")));
        
        WebElement deleteDialog = driver.findElement(By.cssSelector("div[id='obsRemoveDlg']"));
        
        WebElement removeButton = deleteDialog.findElement(By.cssSelector("button[id$='confirmDeleteButton']"));
        
        assertThat(removeButton, notNullValue());
        
        GrowlVerifier.verifyAndWaitToDisappear(20, removeButton, "Observations Removed");
    }
/**
     * Method used to delete observations on the observation tab.
     * 
     * @param driver
     *      {@link WebDriver} currently in use for running the tests.
     */
Method used to delete observations on the observation tab.

@param driver
WebDriver currently in use for running the tests.
Method used to delete observations on the observation tab . @param driver WebDriver currently in use for running the tests .
public static void executeObservationDeletion(final WebDriver driver) throws InterruptedException
    {
        Thread.sleep(1000);
        WebElement deleteButton = isWebElementVisible(
                driver, "button[id$='tabView:obsQueryPanel:obsAccordion:deleteObs']");
        deleteButton.click();
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("div[id='obsRemoveDlg']")));
        WebElement deleteDialog = driver.findElement(By.cssSelector("div[id='obsRemoveDlg']"));
        WebElement removeButton = deleteDialog.findElement(By.cssSelector("button[id$='confirmDeleteButton']"));
        assertThat(removeButton, notNullValue());
        GrowlVerifier.verifyAndWaitToDisappear(20, removeButton, "Observations Removed");
    }
public static void executeObservationDeletion ( final WebDriver driver ) throws InterruptedException { Thread . sleep ( 1000 ) ; WebElement deleteButton = isWebElementVisible ( driver , "button[id$='tabView:obsQueryPanel:obsAccordion:deleteObs']" ) ; deleteButton . click ( ) ; WebDriverWait wait = new WebDriverWait ( driver , 10 ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "div[id='obsRemoveDlg']" ) ) ) ; WebElement deleteDialog = driver . findElement ( By . cssSelector ( "div[id='obsRemoveDlg']" ) ) ; WebElement removeButton = deleteDialog . findElement ( By . cssSelector ( "button[id$='confirmDeleteButton']" ) ) ; assertThat ( removeButton , notNullValue ( ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , removeButton , "Observations Removed" ) ; }
Method used to delete observations on the observation tab.
Method used to delete observations on the observation tab .
//check if the element is visible