const dates = {
street: "Bauweg",
house_number: "22",
post_code: "22222"
}
describe("test legal-new site", () => {
it("test for typing in input boxes", () => {
for (let date in dates) {
console.log(date)
cy.get("input[name=date]")
.focus()
.clear()
.type(dates[date])
.blur()
}
})
})
Error-Message from cypress: Expected to find element: input[name=date], but never found it.
I wrote the date with backticks, but is not correct too. I checked with console.log(date): all o.k. All keys from dates are showed. What is wrong in this element? I think it s a format problem with date, but I don't know where I can find a solution.