mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/base/TestControllerSideBar.java
@Test
    public void testControllerMode() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 10);
        
        ControllerHelper.findControllerMenu(m_Driver);
        
        //Expand the right side bar so that the test can access the controller mode.
        NavigationHelper.expandRightSideBarOnly(m_Driver);

        wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.cssSelector("button[id*='controllerList']")));
        
        //Change the mode 2 times (change, put back)
        ControllerHelper.changeControllerOpMode(m_Driver, "THarvest", OperationMode.OPERATIONAL_MODE, true);
        ControllerHelper.changeControllerOpMode(m_Driver, "THarvest", OperationMode.TEST_MODE, true);
    }
/**
     * Verify the Controller's OperationalMode can be changed.
     */
Verify the Controller's OperationalMode can be changed.
Verify the Controller ' s OperationalMode can be changed .
@Test
    public void testControllerMode() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 10);
        ControllerHelper.findControllerMenu(m_Driver);
        NavigationHelper.expandRightSideBarOnly(m_Driver);
        wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.cssSelector("button[id*='controllerList']")));
        ControllerHelper.changeControllerOpMode(m_Driver, "THarvest", OperationMode.OPERATIONAL_MODE, true);
        ControllerHelper.changeControllerOpMode(m_Driver, "THarvest", OperationMode.TEST_MODE, true);
    }
@ Test public void testControllerMode ( ) throws InterruptedException , ExecutionException , TimeoutException { WebDriverWait wait = new WebDriverWait ( m_Driver , 10 ) ; ControllerHelper . findControllerMenu ( m_Driver ) ; NavigationHelper . expandRightSideBarOnly ( m_Driver ) ; wait . until ( ExpectedConditions . presenceOfAllElementsLocatedBy ( By . cssSelector ( "button[id*='controllerList']" ) ) ) ; ControllerHelper . changeControllerOpMode ( m_Driver , "THarvest" , OperationMode . OPERATIONAL_MODE , true ) ; ControllerHelper . changeControllerOpMode ( m_Driver , "THarvest" , OperationMode . TEST_MODE , true ) ; }
Verify the Controller's OperationalMode can be changed.
Verify the Controller ' s OperationalMode can be changed .
//Expand the right side bar so that the test can access the controller mode. //Change the mode 2 times (change, put back)