WebdriverIO
Integrating Argos with your WebdriverIO tests to enable visual testing on your application.
Last updated
Was this helpful?
Integrating Argos with your WebdriverIO tests to enable visual testing on your application.
WebdriverIO is a Node.js test automation framework for web and mobile applications, built on the WebDriver and WebDriver BiDi protocols. The @argos-ci/webdriverio SDK captures screenshots from your WebdriverIO tests so Argos can detect visual changes on every pull request.
Follow the WebdriverIO Quickstart to set up Argos with WebdriverIO.
browser - A WebdriverIO.Browser instance.
name - The screenshot name; must be unique. If it ends with .png, it is treated as a path.
options.mask - Areas to mask when the screenshot is taken, as an array of rectangles ({ x, y, width, height }). Masked areas are overlaid with a box that completely covers them.
options.maskColor - The color of the overlay box for masked areas, in CSS color format. Defaults to #FF00FF.
Unlike the Playwright, Cypress, and Puppeteer SDKs, the WebdriverIO SDK captures the screenshot as-is: it does not apply Argos stabilization (waiting for loading, pausing GIFs, data-visual-test helper attributes). Stabilize the page in your test before calling argosScreenshot.
Last updated
Was this helpful?
Was this helpful?