I have a table like structure where each cell takes some input. The html tag has id something like id="code[0].name", id="code[0].age", ..., and so on.Similarly, id="code[1].name", id="code[1].age", ..., and so on
Now, in cypress, I want to perform something like this,
namesToFetch.forEach( (el,k) => {
cy.get('[id=code[k].name]').type(name)
My questions is, how to use the k'th index inside the cy.get()?