0

This html code for calendar This is calendar I need to set date from excel sheet ,but in this calendar I need to set day and month and year

driver.findElement(By.id("departureDate")).click();
driver.findElement(By.id("departureDate")).sendKeys(depDate);

//  String depDate =reader.getCellData("Sheet1","DepatureDate",2);
dylanvanw
  • 3,029
  • 1
  • 8
  • 18
Justin Lambert
  • 940
  • 1
  • 7
  • 13

1 Answers1

0

Date selection depend on html elements in this case we can store string value as month and year like "September 2020" and day as "12" and by apachi poi we can reader this from excel and store variables in test class and use in tests

Justin Lambert
  • 940
  • 1
  • 7
  • 13