Unable to select the dropdown value in a cell Cypress Jquery

Viewed 27

enter image description hereenter image description here

I am trying to debug why the dropdown value is not getting picked up when using "select()" or accessing the element by index. When I did cy.log($ele.text()), it didn't return value.

cy.get('[data-testid="gridCell-0:2"]').then((dropdown) => { cy.wrap(dropdown).click()

        // cy.get('[data-testid="autocomplete-button"]').select('IamTest User').click({force: true})// this didn't work

        cy.get('[data-testid="autocomplete-button"]').each(function ($ele,index,$list){
            cy.log($ele.text())//log was empty 

        })

    })
0 Answers
Related