mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationFilterHelper.java
public static void clickNumberFilterCheckBox(final WebDriver driver) throws InterruptedException
    {
        WebDriverWait wait = new WebDriverWait(driver, 30);
        
        WebElement checkBoxDiv = isWebElementVisible(driver, 
                "div[id$='tabView:obsQueryPanel:obsAccordion:retrieveMaxNumBox']");
        
        List<WebElement> obsNum = driver.findElements(By.cssSelector(
                "input[id$='tabView:obsQueryPanel:obsAccordion:obsNum']"));
        wait.until(ExpectedConditions.visibilityOf(checkBoxDiv));
        WebElement numberCheckBox = checkBoxDiv.findElement(By.cssSelector("div[class*='ui-chkbox-box']"));
        numberCheckBox.click();
        
        if (obsNum.isEmpty())
        {
            //If empty then the filter by  number is not currently selected and therefore should
            //wait till the filter by number panel is displayed before continuing.
            wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input[id$='obsNum']")));
        }
        else
        {
            //If not empty then filter by number is currently selected and therefore should wait till the filter by
            //number panel is no longer displayed before continuing.
            wait.until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("input[id$='obsNum']")));
        }
    }
/**
     * Method checks the filter by number check box on the observation tab.
     * 
     * @param driver
     *      {@link WebDriver} currently in use for running the tests.
     */
Method checks the filter by number check box on the observation tab.

@param driver
WebDriver currently in use for running the tests.
Method checks the filter by number check box on the observation tab . @param driver WebDriver currently in use for running the tests .
public static void clickNumberFilterCheckBox(final WebDriver driver) throws InterruptedException
    {
        WebDriverWait wait = new WebDriverWait(driver, 30);
        WebElement checkBoxDiv = isWebElementVisible(driver, 
                "div[id$='tabView:obsQueryPanel:obsAccordion:retrieveMaxNumBox']");
        List<WebElement> obsNum = driver.findElements(By.cssSelector(
                "input[id$='tabView:obsQueryPanel:obsAccordion:obsNum']"));
        wait.until(ExpectedConditions.visibilityOf(checkBoxDiv));
        WebElement numberCheckBox = checkBoxDiv.findElement(By.cssSelector("div[class*='ui-chkbox-box']"));
        numberCheckBox.click();
        if (obsNum.isEmpty())
        {
            wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input[id$='obsNum']")));
        }
        else
        {
            wait.until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("input[id$='obsNum']")));
        }
    }
public static void clickNumberFilterCheckBox ( final WebDriver driver ) throws InterruptedException { WebDriverWait wait = new WebDriverWait ( driver , 30 ) ; WebElement checkBoxDiv = isWebElementVisible ( driver , "div[id$='tabView:obsQueryPanel:obsAccordion:retrieveMaxNumBox']" ) ; List < WebElement > obsNum = driver . findElements ( By . cssSelector ( "input[id$='tabView:obsQueryPanel:obsAccordion:obsNum']" ) ) ; wait . until ( ExpectedConditions . visibilityOf ( checkBoxDiv ) ) ; WebElement numberCheckBox = checkBoxDiv . findElement ( By . cssSelector ( "div[class*='ui-chkbox-box']" ) ) ; numberCheckBox . click ( ) ; if ( obsNum . isEmpty ( ) ) { wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "input[id$='obsNum']" ) ) ) ; } else { wait . until ( ExpectedConditions . invisibilityOfElementLocated ( By . cssSelector ( "input[id$='obsNum']" ) ) ) ; } }
Method checks the filter by number check box on the observation tab.
Method checks the filter by number check box on the observation tab .
//If empty then the filter by  number is not currently selected and therefore should //wait till the filter by number panel is displayed before continuing. //If not empty then filter by number is currently selected and therefore should wait till the filter by //number panel is no longer displayed before continuing.