💡 What will happen after passing negative number to the
.go() method?
cy.go(-1)
A | Go back one page
B | Go forward one page
C | Error, negative numbers cannot be used
🎉 Quiz Completed! 🎉
The
.go() method is used to navigate through the browser's history.
You can use
back and
forward or
-1 and
1 to go one step back or forward.
So, if the index is negative, it will go back in the history.