mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/BundleManagerUtil.java
public static void clearBundleFilter(WebDriver driver) throws InterruptedException
    {
        NavigationHelper.pageAndTabCheck(driver, NavigationButtonNameConstants.NAVBUT_PROP_SYS_CONFIG, BUNDLE_TAB_ID);
        WebDriverWait wait = new WebDriverWait(driver, 5);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input[id*='globalFilter']")));
        WebElement searchBar = driver.findElement(By.cssSelector("input[id*='globalFilter']"));
        searchBar.clear();
        searchBar.sendKeys(Keys.BACK_SPACE); // see clear doc, must send key to register event
        
        waitForBundleFilter(driver, new Function<Collection<String>, Boolean>()
        {
            @Override
            public Boolean apply(Collection<String> bundleSymbolicNames)
            {
                // wait for multiple bundles, don't know what the exact number should be, but more than would show in 
                // search results
                return bundleSymbolicNames.size() > 10;
            }
        });
    }
/**
     * Retrieves the search bar element and clears it.
     * @param driver
     *      Instance of the {@link WebDriver} which controls the navigation
     * @throws InterruptedException
     *      thrown in the event thread sleep is interrupted while waiting for page to render
     */
Retrieves the search bar element and clears it.
@param driver
Instance of the  WebDriver which controls the navigation
@throws InterruptedException
thrown in the event thread sleep is interrupted while waiting for page to render
Retrieves the search bar element and clears it . @param driver Instance of the WebDriver which controls the navigation @throws InterruptedException thrown in the event thread sleep is interrupted while waiting for page to render
public static void clearBundleFilter(WebDriver driver) throws InterruptedException
    {
        NavigationHelper.pageAndTabCheck(driver, NavigationButtonNameConstants.NAVBUT_PROP_SYS_CONFIG, BUNDLE_TAB_ID);
        WebDriverWait wait = new WebDriverWait(driver, 5);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input[id*='globalFilter']")));
        WebElement searchBar = driver.findElement(By.cssSelector("input[id*='globalFilter']"));
        searchBar.clear();
        searchBar.sendKeys(Keys.BACK_SPACE); 
        waitForBundleFilter(driver, new Function<Collection<String>, Boolean>()
        {
            @Override
            public Boolean apply(Collection<String> bundleSymbolicNames)
            {
                return bundleSymbolicNames.size() > 10;
            }
        });
    }
public static void clearBundleFilter ( WebDriver driver ) throws InterruptedException { NavigationHelper . pageAndTabCheck ( driver , NavigationButtonNameConstants . NAVBUT_PROP_SYS_CONFIG , BUNDLE_TAB_ID ) ; WebDriverWait wait = new WebDriverWait ( driver , 5 ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "input[id*='globalFilter']" ) ) ) ; WebElement searchBar = driver . findElement ( By . cssSelector ( "input[id*='globalFilter']" ) ) ; searchBar . clear ( ) ; searchBar . sendKeys ( Keys . BACK_SPACE ) ; waitForBundleFilter ( driver , new Function < Collection < String > , Boolean > ( ) { @ Override public Boolean apply ( Collection < String > bundleSymbolicNames ) { return bundleSymbolicNames . size ( ) > 10 ; } } ) ; }
Retrieves the search bar element and clears it.
Retrieves the search bar element and clears it .
// see clear doc, must send key to register event // wait for multiple bundles, don't know what the exact number should be, but more than would show in  // search results