mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationFilterHelper.java
public static void executeFiltering(final WebDriver driver) throws InterruptedException
    {
        //now get the accordion panel tab
        final WebElement filterTab = retrieveFilterAccordionPanel(driver);
        
        assertThat(filterTab, is(notNullValue()));
        
        Wait<WebDriver> fwait = new FluentWait<WebDriver>(driver).withTimeout(30, TimeUnit.SECONDS).
                pollingEvery(2, TimeUnit.SECONDS).ignoring(StaleElementReferenceException.class, 
                        NoSuchElementException.class);
        
        //click filter button
        fwait.until(new ExpectedCondition<Boolean>()
        {
            @Override
            public Boolean apply(WebDriver driver)
            {
                final WebElement button = 
                    filterTab.findElement(By.cssSelector(
                            "button[id$='tabView:obsQueryPanel:obsAccordion:filterButton']"));
                button.click();
                return true;
            }
        });
    }
/**
     * Click the filter button on the filter tab.
     * @param driver
     *      the current driver instance
     */
Click the filter button on the filter tab.
@param driver
the current driver instance
Click the filter button on the filter tab . @param driver the current driver instance
public static void executeFiltering(final WebDriver driver) throws InterruptedException
    {
        final WebElement filterTab = retrieveFilterAccordionPanel(driver);
        assertThat(filterTab, is(notNullValue()));
        Wait<WebDriver> fwait = new FluentWait<WebDriver>(driver).withTimeout(30, TimeUnit.SECONDS).
                pollingEvery(2, TimeUnit.SECONDS).ignoring(StaleElementReferenceException.class, 
                        NoSuchElementException.class);
        fwait.until(new ExpectedCondition<Boolean>()
        {
            @Override
            public Boolean apply(WebDriver driver)
            {
                final WebElement button = 
                    filterTab.findElement(By.cssSelector(
                            "button[id$='tabView:obsQueryPanel:obsAccordion:filterButton']"));
                button.click();
                return true;
            }
        });
    }
public static void executeFiltering ( final WebDriver driver ) throws InterruptedException { final WebElement filterTab = retrieveFilterAccordionPanel ( driver ) ; assertThat ( filterTab , is ( notNullValue ( ) ) ) ; Wait < WebDriver > fwait = new FluentWait < WebDriver > ( driver ) . withTimeout ( 30 , TimeUnit . SECONDS ) . pollingEvery ( 2 , TimeUnit . SECONDS ) . ignoring ( StaleElementReferenceException . class , NoSuchElementException . class ) ; fwait . until ( new ExpectedCondition < Boolean > ( ) { @ Override public Boolean apply ( WebDriver driver ) { final WebElement button = filterTab . findElement ( By . cssSelector ( "button[id$='tabView:obsQueryPanel:obsAccordion:filterButton']" ) ) ; button . click ( ) ; return true ; } } ) ; }
Click the filter button on the filter tab.
Click the filter button on the filter tab .
//now get the accordion panel tab //click filter button