title: "The method selectByValue(String) undefined for the type WebElement" in Selenium
body: <p>Can you please some one help me to finish this..</p>
  
  <p>I want to write selenium code for drop down. when I'm trying to use below syntax. Im getting this error in eclipse "The method selectByValue(String) undefined for the type WebElement".</p>
  
  <p>I'm using below syntax:</p>
  
  <pre><code>ele.selectByIndex(5);
  ele.selectByValue("3");
  ele.selectByVisibleText(Feb);
  </code></pre>
  
  <p>Thanks in advance...</p>
  
  <p>I have updated after I found the solution.
  I have written the code like this for others can use. it's working fine for me.</p>
  
  <pre><code>public void selectCreditCardType(WebElement selectCreditCardType) throws Exception {
      logger.info("Select Card");
      browser.selectByText(selectCreditCardType, "Visa Card");
      browser.Wait(10);
  }
  </code></pre>