Skip to content

Instantly share code, notes, and snippets.

Created May 7, 2020 14:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
public void loginTest() {
//Open browser
//This is our first instruction, directing us to the login page. One line of code.
//Click on the Login button
//This is our second instruction, directing action by finding the id 'log-in' and clicking. One line of code.
//Assertions Section
//3 lines of code - open a capture session, capture the window, and close the capture
//Start the test, "Demo App", "Login Page Test", new RectangeleSize(800, 800));
//Take a screenshot so AI can analyze
eyes.checkWindow("Login Window");
//End the test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment