mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/ConfigurationHelper.java
public static void handleDeleteConfigDialog(final WebDriver driver, final String deletePid, 
            final boolean removeConfig)
    {
        WebDriverWait wait = new WebDriverWait(driver, 5);
        
        //Find the delete dialog.
        WebElement deleteDialog = driver.findElement(By.cssSelector("div[id*='removeDialog']"));
        wait.until(ExpectedConditions.visibilityOf(deleteDialog));
        assertThat(deleteDialog.isDisplayed(), is(true));
        
        //Verify that the event admin config is being deleted.
        WebElement configPid = deleteDialog.findElement(By.cssSelector("span[class='confirmDialogTextImportant']"));
        assertThat(configPid.getText(), is(deletePid));
        
        //Confirm or cancel deleting the configuration.
        if (removeConfig)
        {
            WebElement confirmDelete = deleteDialog.findElement(By.cssSelector("button[id*='removeButton']"));
            confirmDelete.click();
        }
        else
        {
            WebElement cancelDelete = deleteDialog.findElement(By.cssSelector("button[id*='cancelButton']"));
            cancelDelete.click();
        }
        wait.until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("div[id*='removeDialog']")));
        assertThat(deleteDialog.isDisplayed(), is(false));
    }
/**
     * Method that handles the delete configuration dialog the pops up when deleting a configuration on the 
     * configuration tab.
     * 
     * @param deletePid
     *          PID of the configuration being deleted. Used to verify that the appropriate configuration is being
     *          deleted.
     * @param removeConfig
     *          Used to determine whether or not confirm or cancel the deletion.
     */
Method that handles the delete configuration dialog the pops up when deleting a configuration on the
configuration tab.

@param deletePid
PID of the configuration being deleted. Used to verify that the appropriate configuration is being
deleted.
@param removeConfig
Used to determine whether or not confirm or cancel the deletion.
Method that handles the delete configuration dialog the pops up when deleting a configuration on the configuration tab . @param deletePid PID of the configuration being deleted . Used to verify that the appropriate configuration is being deleted . @param removeConfig Used to determine whether or not confirm or cancel the deletion .
public static void handleDeleteConfigDialog(final WebDriver driver, final String deletePid, 
            final boolean removeConfig)
    {
        WebDriverWait wait = new WebDriverWait(driver, 5);
        WebElement deleteDialog = driver.findElement(By.cssSelector("div[id*='removeDialog']"));
        wait.until(ExpectedConditions.visibilityOf(deleteDialog));
        assertThat(deleteDialog.isDisplayed(), is(true));
        WebElement configPid = deleteDialog.findElement(By.cssSelector("span[class='confirmDialogTextImportant']"));
        assertThat(configPid.getText(), is(deletePid));
        if (removeConfig)
        {
            WebElement confirmDelete = deleteDialog.findElement(By.cssSelector("button[id*='removeButton']"));
            confirmDelete.click();
        }
        else
        {
            WebElement cancelDelete = deleteDialog.findElement(By.cssSelector("button[id*='cancelButton']"));
            cancelDelete.click();
        }
        wait.until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("div[id*='removeDialog']")));
        assertThat(deleteDialog.isDisplayed(), is(false));
    }
public static void handleDeleteConfigDialog ( final WebDriver driver , final String deletePid , final boolean removeConfig ) { WebDriverWait wait = new WebDriverWait ( driver , 5 ) ; WebElement deleteDialog = driver . findElement ( By . cssSelector ( "div[id*='removeDialog']" ) ) ; wait . until ( ExpectedConditions . visibilityOf ( deleteDialog ) ) ; assertThat ( deleteDialog . isDisplayed ( ) , is ( true ) ) ; WebElement configPid = deleteDialog . findElement ( By . cssSelector ( "span[class='confirmDialogTextImportant']" ) ) ; assertThat ( configPid . getText ( ) , is ( deletePid ) ) ; if ( removeConfig ) { WebElement confirmDelete = deleteDialog . findElement ( By . cssSelector ( "button[id*='removeButton']" ) ) ; confirmDelete . click ( ) ; } else { WebElement cancelDelete = deleteDialog . findElement ( By . cssSelector ( "button[id*='cancelButton']" ) ) ; cancelDelete . click ( ) ; } wait . until ( ExpectedConditions . invisibilityOfElementLocated ( By . cssSelector ( "div[id*='removeDialog']" ) ) ) ; assertThat ( deleteDialog . isDisplayed ( ) , is ( false ) ) ; }
Method that handles the delete configuration dialog the pops up when deleting a configuration on the
 configuration tab.
Method that handles the delete configuration dialog the pops up when deleting a configuration on the configuration tab .
//Find the delete dialog. //Verify that the event admin config is being deleted. //Confirm or cancel deleting the configuration.