https://cypress.io logo
how do you capture numbers in cypress.
# i-need-help
p
Trying to capture a (dynamic numbers) means whenever I run the application I get new numbers. This is what I am doing cy.get("#numb").invoke('text).then(text => { numbers = parseInt(text). I keep getting NaN when I log it
l
are you trying to generate a random number and use it??
p
No I fix it. Thanks