Skip to content

Instantly share code, notes, and snippets.

@rajaraodv
Created August 18, 2020 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajaraodv/3df42d15485d010e234b2a94ad063157 to your computer and use it in GitHub Desktop.
Save rajaraodv/3df42d15485d010e234b2a94ad063157 to your computer and use it in GitHub Desktop.
@Test
public void loginTest() {
//Open browser
driver.get("https://demo.applitools.com/loginBefore.html");
//Click on the Login button
driver.findElement(By.id("log-in")).click();
//Start the test
eyes.open(driver, "Login App", "Login Page Test");
//Take a screenshot so AI can analyze
eyes.checkWindow("Login Window");
//End the test
eyes.closeAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment