Not able to select an option from the dropdown leading to ElementNotVisibleException <pre><code>import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.Select; public class DellDropdown { public static void main(String[] args) { WebDriver driver=new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); driver.get("http://www.dell.com/"); WebElement dropdown=driver.findElement(By.xpath("//select[@class='para_small']")); Select select=new Select(dropdown); select.selectByIndex(5); List&lt;WebElement&gt; options=select.getOptions(); for(int i=0;i&lt;options.size();i++) { options.get(i).getText(); } } } </code></pre> <p>I am getting the ElementNotVisibleException on at line select.selectByIndex(5), can someone help me in this regard? </p>