Cypress different between using .focus() and not using it #25171
Unanswered
AndreeMeilio
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new at automation test using cypress, i'm just curious what's the different between writing a test with .focus() and .blur()
e.g cy.get("#loginUsername").focus().type("admin").blur()
and not using it
e.g cy.get("#loginUsername").type("admin")
I tried both of those and it ran the same. so what's the different?
Beta Was this translation helpful? Give feedback.
All reactions