vendredi 26 mars 2021

Is there any way to check only the required checkboxes?

I am trying to only select limited items which has DOM as below:

Account

For 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