title: Selenium How to check the drop down list item is selected
body: <pre><code>public static WebElement drpdwn_selectMonth() throws Exception{
      try{
          WebElement monthSelector = driver.findElement(By.id("monthID"));
          monthSelector.click();
          driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);        
          monthSelector = driver.findElement(By.xpath("//*[@id='monthID']/option[2]"));
          monthSelector.click();
          driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
  
      }catch (Exception e){
          throw(e);
      }
      return element;
  }
  </code></pre>
  
  <ol>
  <li><p>how to do a Boolean check there is a value under drop down list is selected?</p></li>
  <li><p>how to print and get the value selected in drop down list</p></li>
  </ol>