[ad_1]
I’m currently trying to edit a calendar input element and set a new date. Here is what I’m trying to do.
Element:
<input class="ant-calendar-input " placeholder="MM/DD/YYYY" value="03/01/2022">
Xpath:
/html/body/div[2]/div/div/div/div/div[1]/div/input
My code:
find("ant-calendar-input").set(value="01/01/2022")
I’m getting an error that capybara is unable to find this element.
[ad_2]