79122741

Date: 2024-10-24 15:56:10
Score: 1
Natty:
Report link

The issue was that the date input field had an onkeydown event that returned false, preventing keyboard input. A user on Stack Overflow provided the solution to execute JavaScript to remove the onkeydown attribute:

((JavascriptExecutor) driver).executeScript("document.getElementById('textDateOfBirth').removeAttribute('onkeydown');");

After implementing this solution, the input now works fine.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Haflan Nisthar