Here is a nifty trick: get from the document a form elements object and set multiple input values at once.
cy.document()
.its('forms.personal-info.elements')
.then(function (elements) {
elements['first-name'].value = 'Joe'
elements['last-name'].value = 'Smith'
elements.city.value = 'Boston'
})
For more, see the "Form recipes" at https://glebbahmutov.com/cypress-exam...
In questa pagina del sito puoi guardare il video online Set Multiple Input Fields Inside A Form At Once della durata di ore minuti seconda in buona qualità , che l'utente ha caricato gleb bahmutov 15 giugno 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,543 volte e gli è piaciuto 28 spettatori. Buona visione!