mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/observation/ObservationHelper.java
public static WebElement grabObservationPanelBySensorId(String sensorId)
    {
        Preconditions.checkArgument(!Strings.isNullOrEmpty(sensorId));
        WebDriver driver = WebDriverFactory.retrieveWebDriver();
        
        ObservationFilterHelper.enterFilterExpression(driver, "sensorId == \"" + sensorId + "\"");
        
        WebDriverWait wait = new WebDriverWait(driver, 5);
        wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.cssSelector("div[id$='observationPanel']")));
        
        PanelWaitCondition panelWait = new PanelWaitCondition(String.format("sensorId is [%s]", sensorId));
        wait.until(panelWait);
        
        assertThat(String.format("Unable to find observation by sensor id %s", 
                sensorId), panelWait.getPanel(), notNullValue());
        return panelWait.getPanel();
    }
/**
     * Returns a found observation panel with the given sensor id.
     * @param sensorId
     *  the sensor id to locate the observation by.
     * @return
     *  the web element that is the observation identified by the sensor id.
     */
Returns a found observation panel with the given sensor id.
@param sensorId
the sensor id to locate the observation by.
@return
the web element that is the observation identified by the sensor id.
Returns a found observation panel with the given sensor id . @param sensorId the sensor id to locate the observation by . @return the web element that is the observation identified by the sensor id .
public static WebElement grabObservationPanelBySensorId(String sensorId)
    {
        Preconditions.checkArgument(!Strings.isNullOrEmpty(sensorId));
        WebDriver driver = WebDriverFactory.retrieveWebDriver();
        ObservationFilterHelper.enterFilterExpression(driver, "sensorId == \"" + sensorId + "\"");
        WebDriverWait wait = new WebDriverWait(driver, 5);
        wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.cssSelector("div[id$='observationPanel']")));
        PanelWaitCondition panelWait = new PanelWaitCondition(String.format("sensorId is [%s]", sensorId));
        wait.until(panelWait);
        assertThat(String.format("Unable to find observation by sensor id %s", 
                sensorId), panelWait.getPanel(), notNullValue());
        return panelWait.getPanel();
    }
public static WebElement grabObservationPanelBySensorId ( String sensorId ) { Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( sensorId ) ) ; WebDriver driver = WebDriverFactory . retrieveWebDriver ( ) ; ObservationFilterHelper . enterFilterExpression ( driver , "sensorId == \"" + sensorId + "\"" ) ; WebDriverWait wait = new WebDriverWait ( driver , 5 ) ; wait . until ( ExpectedConditions . presenceOfAllElementsLocatedBy ( By . cssSelector ( "div[id$='observationPanel']" ) ) ) ; PanelWaitCondition panelWait = new PanelWaitCondition ( String . format ( "sensorId is [%s]" , sensorId ) ) ; wait . until ( panelWait ) ; assertThat ( String . format ( "Unable to find observation by sensor id %s" , sensorId ) , panelWait . getPanel ( ) , notNullValue ( ) ) ; return panelWait . getPanel ( ) ; }
Returns a found observation panel with the given sensor id.
Returns a found observation panel with the given sensor id .