Skip to content

Instantly share code, notes, and snippets.

@batmi02
Created May 23, 2019 17:05
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 batmi02/117a1e66bf5070d2c100e1ded1c7942c to your computer and use it in GitHub Desktop.
Save batmi02/117a1e66bf5070d2c100e1ded1c7942c to your computer and use it in GitHub Desktop.
Abel's code for initiating Applitools Eyes
// 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