The date field is like a calendar, and I cannot enter the date using sendKeys Selenium WebDriver.
But the “type” in the date field worked fine with Selenium RC.
I tried using "clear ()" before "sendKeys ()", but this gave an error:
Caught Exception: Element is read-only and so may not be used for actions Command duration or timeout: 10.11 seconds
sendKeys () works great for other text input fields.
I tried isDisplayed () to check the item and it came as true. Even in the browser, when the test starts, the cursor moves to the date fields, but does not enter text into them.
source share