'How to select date from calendar that has readonly property using Playwright?
I am new to the playwright framework came from protractor background and want to know the method for the selector to select a date in the playwright.
selctor.fill(date) //not working
Solution 1:[1]
fill is used like this:
page.fill('selector', valueToFillWith)
so if date element is 'id="date"'
page.fill('[id="date"]', '08/21/2022')
Solution 2:[2]
page.fill('[id="date"]', '08/21/2022') // not working
like this? <input readonly="" placeholder="Select date" class="ant-calendar-picker-input ant-input" value="2022-02-25">
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Fus-Roh-Dayumm |
| Solution 2 | liwei |
