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

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

        //Verify that the install bundle dialog is displayed.
        WebElement installDialog = driver.findElement(By.cssSelector("div[id*='installDialog']"));
        assertThat(installDialog.isDisplayed(), is(true));

        //Set the bundle being installed to start once installed.
        WebElement checkBoxDiv = installDialog.findElement(By.cssSelector("div[id*='startBundle']"));
        WebElement startBundleCheckBox = checkBoxDiv.findElement(By.cssSelector("div[class*='ui-chkbox-box']"));
        startBundleCheckBox.click();

        //Enter the location of the bundle to be uploaded.
        WebElement fileUpload = installDialog.findElements(By.tagName("input")).get(2);
        fileUpload.sendKeys(bundleFile.getAbsolutePath());

        GeneralHelper.safeClickBySelector(By.cssSelector("button[id*='importButton']"));
        
        if (returnPageButton != null)
        {
            NavigationHelper.navigateToPage(driver, returnPageButton);
        }        
    }
/**
     * Method which navigates to the System Configurations page and automatically installs a bundle
     * with the given JAR file name.
     * @param driver
     *      Instance of the {@link WebDriver} which controls the navigation
     * @param bundleFile
     *      bundle file to install
     * @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 installs a bundle
with the given JAR file name.
@param driver
Instance of the  WebDriver which controls the navigation
@param bundleFile
bundle file to install
@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 installs a bundle with the given JAR file name . @param driver Instance of the WebDriver which controls the navigation @param bundleFile bundle file to install @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 installBundle(WebDriver driver, File bundleFile, String returnPageButton) 
        throws InterruptedException
    {
        assertThat(bundleFile, isFile());
        NavigationHelper.pageAndTabCheck(driver, NavigationButtonNameConstants.NAVBUT_PROP_SYS_CONFIG, BUNDLE_TAB_ID);
        if (returnPageButton != null)
        {
            sysConfigNavigationHelper(driver);
        }
        WebElement importButton = driver.findElement(By.cssSelector("button[id*='installUpdate']"));
        assertThat(importButton.isDisplayed(), is(true));
        importButton.click();
        WebElement installDialog = driver.findElement(By.cssSelector("div[id*='installDialog']"));
        assertThat(installDialog.isDisplayed(), is(true));
        WebElement checkBoxDiv = installDialog.findElement(By.cssSelector("div[id*='startBundle']"));
        WebElement startBundleCheckBox = checkBoxDiv.findElement(By.cssSelector("div[class*='ui-chkbox-box']"));
        startBundleCheckBox.click();
        WebElement fileUpload = installDialog.findElements(By.tagName("input")).get(2);
        fileUpload.sendKeys(bundleFile.getAbsolutePath());
        GeneralHelper.safeClickBySelector(By.cssSelector("button[id*='importButton']"));
        if (returnPageButton != null)
        {
            NavigationHelper.navigateToPage(driver, returnPageButton);
        }        
    }
public static void installBundle ( WebDriver driver , File bundleFile , String returnPageButton ) throws InterruptedException { assertThat ( bundleFile , isFile ( ) ) ; NavigationHelper . pageAndTabCheck ( driver , NavigationButtonNameConstants . NAVBUT_PROP_SYS_CONFIG , BUNDLE_TAB_ID ) ; if ( returnPageButton != null ) { sysConfigNavigationHelper ( driver ) ; } WebElement importButton = driver . findElement ( By . cssSelector ( "button[id*='installUpdate']" ) ) ; assertThat ( importButton . isDisplayed ( ) , is ( true ) ) ; importButton . click ( ) ; WebElement installDialog = driver . findElement ( By . cssSelector ( "div[id*='installDialog']" ) ) ; assertThat ( installDialog . isDisplayed ( ) , is ( true ) ) ; WebElement checkBoxDiv = installDialog . findElement ( By . cssSelector ( "div[id*='startBundle']" ) ) ; WebElement startBundleCheckBox = checkBoxDiv . findElement ( By . cssSelector ( "div[class*='ui-chkbox-box']" ) ) ; startBundleCheckBox . click ( ) ; WebElement fileUpload = installDialog . findElements ( By . tagName ( "input" ) ) . get ( 2 ) ; fileUpload . sendKeys ( bundleFile . getAbsolutePath ( ) ) ; GeneralHelper . safeClickBySelector ( By . cssSelector ( "button[id*='importButton']" ) ) ; if ( returnPageButton != null ) { NavigationHelper . navigateToPage ( driver , returnPageButton ) ; } }
Method which navigates to the System Configurations page and automatically installs a bundle
 with the given JAR file name.
Method which navigates to the System Configurations page and automatically installs a bundle with the given JAR file name .
//Verify that the install bundle dialog is displayed. //Set the bundle being installed to start once installed. //Enter the location of the bundle to be uploaded.