lundi 19 octobre 2020

Write a Cypress test by getting a Rolling Code from nodejs file and find element of the input box?

I'm working with cypress to automate our UI and got stock in final step where I need to get the rolling code and inject it to the UI.

How can I get the exact element of the rolling code in the UI. I'm trying to run a node.js file using cypress.exec() and get the rolling code into a const .Then inject this code to that particular element and use that code to continue to another page.

My code look something like below.

enter image description here

Aucun commentaire:

Enregistrer un commentaire