0

I am trying to select a date from the application calendar using javascript executor but having some error using selenium python.

The xpath of the calendar item is = "//input[@placeholder='dd/mm/yyyy']" I am going with xpath because other attributes like "id", "class" is not available in the element.

Now I am using the following script

driver.execute_script("document.getElementByxpath('//input[@placeholder='dd/mm/yyyy']').value='13/10/2001'")

after runnign the above script, I am having the below error. Any leads on the same will be helpful.

selenium.common.exceptions.JavascriptException: Message: javascript error: missing ) after argument list

0 Answers0