mercredi 22 mai 2019

Extracting parts of a text in Cypress

I'm new to and Cypress and I need to extract a dynamical part of a text from my application.

<body>
<div>Hello World greeting number 9123</div>
</body>

In this example I need to extract 9123 from the div, to use later in my tests. Any idea how I should do that?

Aucun commentaire:

Enregistrer un commentaire