Skip to content

Instantly share code, notes, and snippets.

@MCTaylor17
Created January 15, 2019 22:49
Show Gist options
  • Save MCTaylor17/ce1152416d5572760b0fbbcbe2116b86 to your computer and use it in GitHub Desktop.
Save MCTaylor17/ce1152416d5572760b0fbbcbe2116b86 to your computer and use it in GitHub Desktop.
Medium: Cypress Methods
// wait for 1000 milliseconds
cy.wait(1000);
// Trigger the 'mousemove' event on button
cy.get("button").trigger("mousemove");
// Access the application window object
cy.window().then((window)=> {
let document = window.document;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment