Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created September 11, 2020 21:12
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 angiejones/fd269981b95479cf491afce914faee68 to your computer and use it in GitHub Desktop.
Save angiejones/fd269981b95479cf491afce914faee68 to your computer and use it in GitHub Desktop.
Playwright - Applitools cross platform testing
beforeEach(async () => {
page = await browser.newPage()
await page.goto('https://automationbookstore.dev/')
const configuration = new Configuration()
configuration.setBatch(new BatchInfo('Cross Platform Tests'))
configuration.addBrowser(800, 600, BrowserType.CHROME);
configuration.addBrowser(700, 500, BrowserType.FIREFOX);
configuration.addBrowser(1024, 768, BrowserType.EDGE_CHROMIUM);
configuration.addBrowser(800, 600, BrowserType.SAFARI);
configuration.addBrowser(1600, 1200, BrowserType.IE_11);
configuration.addDeviceEmulation(DeviceName.iPhone_X, ScreenOrientation.PORTRAIT);
eyes.setConfiguration(configuration);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment