Syntax error, unrecognized expression: :nth-child

  for(let i=0;i<5;i++){

        for(let j=0;j<15;j++){

            cy.get('[role="table"]>tbody>tr:nth-child("+ i +")>td:nth-child("+ j +")').then($cPartNo=>{

                cXNpartArray1.push($cPartNo)

            }

            )

        }

    }

How can this be implemented? 

Error: Syntax error, unrecognized expression: :nth-child

Answers 0

Related Articles