I want to select return date from the calendar on a booking website. it select the first "From:" date but is unable to select the Return date i have also tried using wrapping the xpath.
public static void main(String[] args) throws InterruptedException
{
System.setProperty("webdriver.gecko.driver","C:\\geckodriver-v0.17.0-win64\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("https://www.makemytrip.com/");
Thread.sleep(3000L);
driver.findElement(By.xpath(".//*[@id='hp-widget__sfrom']")).click();
driver.findElement(By.xpath(".//*[@id='hp-widget__sfrom']")).sendKeys("GOI");
driver.findElement(By.xpath(".//*[@id='hp-widget__sfrom']")).sendKeys(Keys.TAB);
Thread.sleep(3000L);
driver.findElement(By.xpath(".//*[@id='hp-widget__sTo']")).sendKeys("AMD");
driver.findElement(By.xpath(".//*[@id='hp-widget__sTo']")).sendKeys(Keys.TAB);
driver.findElement(By.xpath(".//*[@id='hp-widget__depart']")).click();
driver.findElement(By.xpath(".//*[@data-month='0'][5]//a[text()='26']")).click();
Thread.sleep(3000L);
driver.findElement(By.xpath(".//*[@id='hp-widget__return']")).click();
driver.findElement(By.xpath("(.//*[@data-month='0']//a[text()='29'])[2]")).click();
}
}
I want to select the REtun date as well
Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: