Hi I want to count the number of buttons inside a specific tag
How can I print the sum of buttons?
I tried
cy.log(cy.get('dropdown').find('button').count())
But it doesn’t work
Hi I want to count the number of buttons inside a specific tag
How can I print the sum of buttons?
I tried
cy.log(cy.get('dropdown').find('button').count())
But it doesn’t work
You can save the count with an alias
You can get the length by using .its:
Or, You can also get the length like: