Reputation: 1
I'm trying to select Check In and Check out time in "http://www.kayak.co.in/?ispredir=true" through the web driver. Not able to select any date. Please can help me.
Upvotes: 0
Views: 129
Reputation: 16201
Do not mess with Datepicker. Insread use sendKeys()
For check in date you can use
driver.findElement(By.Id("travel_dates-start-placeholder")).sendKeys("01/01/2015");
Upvotes: 1
Reputation: 5231
WebElement checkin = driver.findelement(by.xpath(".//*[@id='travel_dates-start-wrapper']/span[1]"));
checkin.click();
WebElement checkout = driver.findelement(by.xpath(".//*[@id='travel_dates-end-wrapper']/span[1]"));
checkout.click();
Please let me if this works..
Upvotes: 0