UNPKG

cypress-get-by-label

Version:

Example custom Cypress command finding form element by its label

5 lines (3 loc) 160 B
const { getByCommand } = require('./src/get-by') // register a new custom command cy.getByLabel Cypress.Commands.add('getByLabel', getByCommand('getByLabel'))