mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/BundleManagerUtil.java
public static void uninstallBundle(WebDriver driver, String bundleSymbolicName, String returnPageButton) 
        throws InterruptedException
    {
        NavigationHelper.pageAndTabCheck(driver, NavigationButtonNameConstants.NAVBUT_PROP_SYS_CONFIG, BUNDLE_TAB_ID);
        if (returnPageButton != null)
        {
            sysConfigNavigationHelper(driver);
        }

        //Uses the bundle search bar feature to find the specified bundle.
        clearBundleFilter(driver);
        WebElement bundleRow = filterBundles(driver, bundleSymbolicName, true);

        WebElement uninstall = bundleRow.findElement(By.cssSelector("button[id*='uninstall']"));
        assertThat(uninstall.isDisplayed(), is(true));
        uninstall.click();

        //Verify that the uninstall dialog is displayed.
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("div[id*='uninstallDialog']")));
        WebElement uninstallDialog = driver.findElement(By.cssSelector("div[id*='uninstallDialog']"));
        assertThat(uninstallDialog.isDisplayed(), is(true));

        WebElement uninstallButton = 
                uninstallDialog.findElement(By.cssSelector("button[id*='uninstallButton']"));
        uninstallButton.click();

        if (returnPageButton != null)
        {
            NavigationHelper.navigateToPage(driver, returnPageButton);
        } 
    }
/**
     * Method which navigates to the System Configurations page and automatically uninstalls a bundle
     * with the given bundle name.
     * @param driver
     *      Instance of the {@link WebDriver} which controls the navigation
     * @param bundleSymbolicName
     *      bundle symbolic name as listed in the bundles table on the System Configuration page. 
     *      (e.g. example.asset)
     * @param returnPageButton
     *      {@link NavigationButtonNameConstants} ID corresponding to the page to navigate back to after
     *      performing bundle installation.
     * @throws InterruptedException
     *      thrown in the event thread sleep is interrupted while waiting for page to render
     */
Method which navigates to the System Configurations page and automatically uninstalls a bundle
with the given bundle name.
@param driver
Instance of the  WebDriver which controls the navigation
@param bundleSymbolicName
bundle symbolic name as listed in the bundles table on the System Configuration page.

@param returnPageButton
NavigationButtonNameConstants ID corresponding to the page to navigate back to after
performing bundle installation.
@throws InterruptedException
thrown in the event thread sleep is interrupted while waiting for page to render
Method which navigates to the System Configurations page and automatically uninstalls a bundle with the given bundle name . @param driver Instance of the WebDriver which controls the navigation @param bundleSymbolicName bundle symbolic name as listed in the bundles table on the System Configuration page . @param returnPageButton NavigationButtonNameConstants ID corresponding to the page to navigate back to after performing bundle installation . @throws InterruptedException thrown in the event thread sleep is interrupted while waiting for page to render
public static void uninstallBundle(WebDriver driver, String bundleSymbolicName, String returnPageButton) 
        throws InterruptedException
    {
        NavigationHelper.pageAndTabCheck(driver, NavigationButtonNameConstants.NAVBUT_PROP_SYS_CONFIG, BUNDLE_TAB_ID);
        if (returnPageButton != null)
        {
            sysConfigNavigationHelper(driver);
        }
        clearBundleFilter(driver);
        WebElement bundleRow = filterBundles(driver, bundleSymbolicName, true);
        WebElement uninstall = bundleRow.findElement(By.cssSelector("button[id*='uninstall']"));
        assertThat(uninstall.isDisplayed(), is(true));
        uninstall.click();
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("div[id*='uninstallDialog']")));
        WebElement uninstallDialog = driver.findElement(By.cssSelector("div[id*='uninstallDialog']"));
        assertThat(uninstallDialog.isDisplayed(), is(true));
        WebElement uninstallButton = 
                uninstallDialog.findElement(By.cssSelector("button[id*='uninstallButton']"));
        uninstallButton.click();
        if (returnPageButton != null)
        {
            NavigationHelper.navigateToPage(driver, returnPageButton);
        } 
    }
public static void uninstallBundle ( WebDriver driver , String bundleSymbolicName , String returnPageButton ) throws InterruptedException { NavigationHelper . pageAndTabCheck ( driver , NavigationButtonNameConstants . NAVBUT_PROP_SYS_CONFIG , BUNDLE_TAB_ID ) ; if ( returnPageButton != null ) { sysConfigNavigationHelper ( driver ) ; } clearBundleFilter ( driver ) ; WebElement bundleRow = filterBundles ( driver , bundleSymbolicName , true ) ; WebElement uninstall = bundleRow . findElement ( By . cssSelector ( "button[id*='uninstall']" ) ) ; assertThat ( uninstall . isDisplayed ( ) , is ( true ) ) ; uninstall . click ( ) ; WebDriverWait wait = new WebDriverWait ( driver , 10 ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "div[id*='uninstallDialog']" ) ) ) ; WebElement uninstallDialog = driver . findElement ( By . cssSelector ( "div[id*='uninstallDialog']" ) ) ; assertThat ( uninstallDialog . isDisplayed ( ) , is ( true ) ) ; WebElement uninstallButton = uninstallDialog . findElement ( By . cssSelector ( "button[id*='uninstallButton']" ) ) ; uninstallButton . click ( ) ; if ( returnPageButton != null ) { NavigationHelper . navigateToPage ( driver , returnPageButton ) ; } }
Method which navigates to the System Configurations page and automatically uninstalls a bundle
 with the given bundle name.
Method which navigates to the System Configurations page and automatically uninstalls a bundle with the given bundle name .
//Uses the bundle search bar feature to find the specified bundle. //Verify that the uninstall dialog is displayed.