Cypress WebElements - biswajitsundara/Cypress GitHub Wiki

Selecting Elements

TBD

Selecting Multiple Elements

Cy.get('selector') gets one or more DOM elements by selector. The querying behavior of this command matches exactly how $(…) works in jQuery. So what happens when the selector matches multiple elements.

Example: Lets say cy.get('input') finds three text boxes on the page. Then if we execute cy.get('input').type('hello') then it will not enter the text on the first textbox instead will throw error cy.type() can only be called on a single element. Your subject contained 3 elements

Locator Strategy

TBD