I have a task I am attempting to automate in selenium using Python, which includes selecting a date. The date selection on the website has an input box that when you select drops down a pretty standard date table.
The input "text" box is set to read-only and I am having some trouble getting Selenium to find the dates I am asking it to select, being able to simply send_keys of the date required to the input box would be a far easier implementation.
After some research, I found this solution in JS:
((JavascriptExecutor)driver).executeScript("arguments[0].value=arguments[1]", element, "my text to put in the value");
Is there a similar function I could use in Python that would achieve the same?
I am not that familiar with Javascript so my abilities don't allow me to convert this into Python.
Any help would be appreciated.