Hello,
I’m trying to automate a date picker.
In my portal when clicking on the following icon, another window with date picker will pop out.
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/b267d140-05e8-440d-922f-9fba6b7ee971.png)
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/19e5ce0f-5c83-4a8d-b2c1-1a382c27daa2.png)
When I inspect the date element, it shows that it’s actually a javascript query.
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39aad91a-1ae0-4bb2-8d97-a364cf6eca2b.png)
I copied this query and paste in Browser: Run Javascript action that run in the Date picker window, with a bit of modifications
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/15d68a4a-5fe2-4bde-a95c-65a574ddd46f.png)
When I run this line, it doesn’t do anything. What am I doing wrong?