I am trying to only select limited items which has DOM as below:
AccountFor selecting all the items, I used following code:
it('Select all items', ()=>{
cy.get('#WallTransportationModeId').select('Wallbee-Road')
cy.get(':nth-child(n) > .checkbox-wrap > .wb-checkbox > label').click({ multiple: true, force: true })
cy.get('#btn-save-transportation-layout-setup').click()
})
All the items are selected as well. But now I need to only select 10 first items.
Aucun commentaire:
Enregistrer un commentaire