Created
May 23, 2019 17:05
-
-
Save batmi02/117a1e66bf5070d2c100e1ded1c7942c to your computer and use it in GitHub Desktop.
Abel's code for initiating Applitools Eyes
This file contains 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
// initialize the eyes SDK and set your private API key | |
var eyes = new Eyes(); | |
eyes.ApiKey = appliToolsKey; | |
eyes.Batch = batchInfo; | |
// Start the test by setting AUT's name, window or the page name that's being tested, | |
//viewport width and height | |
TESTNAME = testName; | |
eyes.Open(driver, "Mercury Health Web App", TESTNAME, WINDOWSIZE); | |
// set the window size of the browser and browse to the home page | |
driver.Manage().Window.Size = WINDOWSIZE; | |
return new HomePage(driver, eyes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment