title: I cannot select from city in MakeMyTrip wesite with Selenium WebDriver
body: <p>I cannot select from city in MakeMyTrip wesbite with Selenium WebDriver. It does not select the specified city. It should click on the specified city and display the city in the "from city" field.  </p>
  
  <p>Here is my code:</p>
  
  <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.interactions.Actions;
  import org.openqa.selenium.support.ui.Select;
  
  public class Makemytrip {
  
      public static void main(String[] args)  {
          System.setProperty("webdriver.chrome.driver", "D:\\Selenium\\chromedriver_win32\\chromedriver.exe");
          WebDriver driver = new ChromeDriver();
          driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
          driver.get("https://www.makemytrip.com/");
          String actualTitle=" ";
          actualTitle=driver.getTitle();
          String url=driver.getCurrentUrl();
          System.out.println(url);
          String expectedTitle=actualTitle;
          if(actualTitle.contentEquals(expectedTitle)){
              System.out.println("Test pass");
          }
          else{
              System.out.println("Test fail");
          }
          WebElement roundtrip=driver.findElement(By.xpath(".//label[@class='label_text flight-trip-type']"));
          roundtrip.click();
          System.out.println("Select one way option");
          //driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
          driver.findElement(By.xpath(".//div/section/div/div/input[@id='hp-widget__sfrom']")).click();
          driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
          List&lt;WebElement&gt; dd_menu=driver.findElements(By.xpath(".//ul[@id='ui-id-1']/li/div/p/span"));
          for(int i=0;i&lt;dd_menu.size();i++){
              WebElement element=dd_menu.get(i);
              String innerhtml=element.getAttribute("innerHTML");
              if(innerhtml.contentEquals("Hyderabad, India             HYD" )){
                  element.click();
                  break;
              }
              System.out.println("Values in list " +innerhtml);
              }
          }
  }
  </code></pre>