title: Selenium with Java how to deal with combo box
body: <p>I want to select a value from a combo box.
  I tried this :</p>
  
  <pre><code>@Test(enabled = true)
      public void hierarchyLegendArea() throws Exception {
          setUp(Constants.BASE_URL_NAME, "chrome");
          selenium.setSpeed("1500");
          selenium.open(Constants.OPEN_NMA_TEMPLATE_DIR);
          selenium.windowMaximize();
          Thread.sleep(15000);
  
  
          String comboBoxId = "//*[@id=\"contentTopBarCombobox\"]/div/div[1]/div[2]";
          String valueInSideComboBoxId ="combo_box_values_cachable";
          selenium.click(comboBoxId); 
          Thread.sleep(1000);
          selenium.click(valueInSideComboBoxId); 
  }
  </code></pre>
  
  <p>But that did not worked.
  Does anyone know how to select a value from Combo box ?</p>
  
  <p>when i try to add driver variable eclips askes me to declare it </p>