title: Getting Exception: Element is not clickable because another element obscures it
body: <pre><code>package Roughpack;
  
  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.firefox.FirefoxDriver;
  
  import org.openqa.selenium.support.ui.Select;
  
  import org.openqa.selenium.support.ui.WebDriverWait;
  
  public class MyClass {
  
      public static void main(String[] args) {
  
          System.setProperty("webdriver.gecko.driver","D:\\Executabel\\geckodriver-v0.21.0-win64\\geckodriver.exe");
  
          WebDriver driver = new FirefoxDriver();
  
          WebDriverWait wait = new WebDriverWait(driver, 20);
  
          driver.get("http://pro.tykitksa.com/");
  
          driver.manage().window().maximize();
  
          driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);
  
          List&lt;WebElement&gt; dropDownList = driver.findElements(By.id("user_event_city"));
  
          System.out.println(dropDownList.size());
  
          for (int i = 0; i &lt; dropDownList.size(); i++) {
  
              System.out.println(dropDownList.get(i).getText());
  
              WebElement Dropdown = driver.findElement(By.id("user_event_city"));
  
              Select select = new Select(Dropdown);
  
              select.selectByIndex(4);
  
          }
  
      }
  }
  </code></pre>