I wrote a script to log in, navigate to the report page, choose dates, and download the file. However, I’m facing an issue: the date picker always returns today’s date, regardless of the format I use !!
the second issue I can’t target the only the table element so I download the file
this is the HTML
for the first issue
I have used page.fill ,page.locator with no luck
page.fill('[id="txtFromDate"]',formatted_date)
page.locator('[id="txtToDate"]').fill('11-08-2024')