0

this is my code

DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
String date = dateFormat.format(tomorrow());


((JavascriptExecutor)driver).executeScript("arguments[0].value=arguments[1]", driver.findElement(By.id("appointmentDate")), date);

or....
 driver().findElement(By.id("appointmentDate")).sendKeys(date.toString());

enter image description here

I am able to click on the corner of input field manually and calender opens but when i try to do it in automation can't do it. And not able to inspect the table also, i tried to insert date with right format using sendkeys, javascriptexecutor and also tried to remove readonly property if any, i dont see that attribute as well but still no use. Please help me resolve this.

0 Answers0