Last active
October 7, 2019 21:19
-
-
Save alsargent/e5b3e39236d3f654cc8d5faa43e0cf20 to your computer and use it in GitHub Desktop.
Functional testing with Visual AI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void loginTest() { | |
//Open browser | |
driver.get("http://localhost:8000/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", new RectangleSize(800, 800)); | |
//Take a screenshot so AI can analyze (and ignore large displacements) | |
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