vendredi 24 juillet 2015

how to select values from date-picker in Cucumber-java

I am trying a scenario to book a flight on Expedia website.but unable to select a departure date from the date picker view.i am able to enter the date by using submit keys.but i want it to auto selected by a click. kindly help me out of this.following is my code

@When("^I click on Departing date$") public void I_click_on_Departing_date() throws Throwable { driver.findElement(By.xpath(".//*[@id='flight-departing']")).sendKeys("26/07/2015");

Aucun commentaire:

Enregistrer un commentaire