title: How to click on the dropdown and increase the number of adult passengers on https://www.goindigo.in/ using Selenium and Java
body: <p>I am trying to access Indigo website <a href="https://www.goindigo.in/" rel="nofollow noreferrer">https://www.goindigo.in/</a></p>
  <p>I have written code:</p>
  <pre><code>System.setProperty(&quot;webdriver.chrome.driver&quot;,&quot;D:\\New folder\\chromedriver.exe&quot;);
  WebDriver driver = new ChromeDriver();
  driver.manage().window().maximize();
  driver.get(&quot;https://www.goindigo.in/&quot;);       
  Thread.sleep(2000);
  driver.findElement(By.cssSelector(&quot;input.form- 
  control.hpBookingForm.passengerInputField.pax-class-count&quot;)).click();
           
  for(int i=1;i&lt;5;i++)
  {
     driver.findElement(By.xpath(&quot;/html/body/div[27]/div/div/div[2]/ul/li[1]/div/button[2]&quot;)).click();
  }
  </code></pre>
  <p>I am unable to increment the number of passengers. Please check.</p>