mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/base/TestGUIOptionsNavigation.java
@Test
    public void testAssetButton() throws InterruptedException
    {
        NavigationHelper.navigateToPage(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS);

        // this is needed to make sure that the tests do not end before the page has navigated to the
        // next page. Leaving the below code out will result in all subsequent tests failing because
        // they are a page behind.
        Boolean result = (new WebDriverWait(m_Driver, 5)).until(new ExpectedCondition<Boolean>()
        {
            @Override
            public Boolean apply(WebDriver d)
            {
                return d.getCurrentUrl().contains(PageNameConstants.PAGECONST_PROP_ASSET);
            }
        });

        assertThat(result, is(true));
    }
/*
     * Tests to see if Devices -> Assets button navigates to the assets_comms.xhtml page. Side note: All sections go by
     * how they are divided in the left scroll bar, but since the Assets button and Comms button currently share a page
     * they are split up so that navigation will not be to the same page twice
     */
Tests to see if Devices -> Assets button navigates to the assets_comms.xhtml page. Side note: All sections go by
how they are divided in the left scroll bar, but since the Assets button and Comms button currently share a page
they are split up so that navigation will not be to the same page twice
Tests to see if Devices - > Assets button navigates to the assets_comms . xhtml page . Side note : All sections go by how they are divided in the left scroll bar but since the Assets button and Comms button currently share a page they are split up so that navigation will not be to the same page twice
@Test
    public void testAssetButton() throws InterruptedException
    {
        NavigationHelper.navigateToPage(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS);
        Boolean result = (new WebDriverWait(m_Driver, 5)).until(new ExpectedCondition<Boolean>()
        {
            @Override
            public Boolean apply(WebDriver d)
            {
                return d.getCurrentUrl().contains(PageNameConstants.PAGECONST_PROP_ASSET);
            }
        });
        assertThat(result, is(true));
    }
@ Test public void testAssetButton ( ) throws InterruptedException { NavigationHelper . navigateToPage ( m_Driver , NavigationButtonNameConstants . NAVBUT_PROP_ASSETS ) ; Boolean result = ( new WebDriverWait ( m_Driver , 5 ) ) . until ( new ExpectedCondition < Boolean > ( ) { @ Override public Boolean apply ( WebDriver d ) { return d . getCurrentUrl ( ) . contains ( PageNameConstants . PAGECONST_PROP_ASSET ) ; } } ) ; assertThat ( result , is ( true ) ) ; }
Tests to see if Devices -> Assets button navigates to the assets_comms.xhtml page.
Tests to see if Devices - > Assets button navigates to the assets_comms . xhtml page .
// this is needed to make sure that the tests do not end before the page has navigated to the // next page. Leaving the below code out will result in all subsequent tests failing because // they are a page behind.