All Projects → zinserjan → Wdio Screenshot

zinserjan / Wdio Screenshot

Licence: mit
A WebdriverIO plugin. Additional commands for taking screenshots with WebdriverIO.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wdio Screenshot

Instagramfirstcommenter
This bot will post a predefined comment as fast as possible to a new post on the target profile. I used this to successfully win tickets for a big music festival.
Stars: ✭ 26 (-74.26%)
Mutual labels:  automation, selenium
Appium Selenium Starter
Open source, complete and easy to use QA Automation platform
Stars: ✭ 30 (-70.3%)
Mutual labels:  automation, selenium
Protractor Pretty Html Reporter
A jasmine reporter that produces an easy to use html report to analyze protractor test results.
Stars: ✭ 9 (-91.09%)
Mutual labels:  automation, screenshot
Deviceframe
📱 Put device frames around your mobile/web/progressive app screenshots.
Stars: ✭ 507 (+401.98%)
Mutual labels:  automation, screenshot
Aet
AET - a system that detects visual changes on web sites and performs basic page health checks
Stars: ✭ 100 (-0.99%)
Mutual labels:  automation, selenium
Infospider
INFO-SPIDER 是一个集众多数据源于一身的爬虫工具箱🧰,旨在安全快捷的帮助用户拿回自己的数据,工具代码开源,流程透明。支持数据源包括GitHub、QQ邮箱、网易邮箱、阿里邮箱、新浪邮箱、Hotmail邮箱、Outlook邮箱、京东、淘宝、支付宝、中国移动、中国联通、中国电信、知乎、哔哩哔哩、网易云音乐、QQ好友、QQ群、生成朋友圈相册、浏览器浏览历史、12306、博客园、CSDN博客、开源中国博客、简书。
Stars: ✭ 5,984 (+5824.75%)
Mutual labels:  automation, selenium
Headless
Create a virtual X screen from Ruby, record videos and take screenshots.
Stars: ✭ 951 (+841.58%)
Mutual labels:  screenshot, selenium
Selenium Document
a document with regard to selenium
Stars: ✭ 274 (+171.29%)
Mutual labels:  automation, selenium
Gwen Web
A web automation engine for Gwen.
Stars: ✭ 47 (-53.47%)
Mutual labels:  automation, selenium
Edge Selenium Tools
An updated EdgeDriver implementation for Selenium 3 with newly-added support for Microsoft Edge (Chromium).
Stars: ✭ 41 (-59.41%)
Mutual labels:  automation, selenium
Golem
A complete test automation tool
Stars: ✭ 441 (+336.63%)
Mutual labels:  automation, selenium
Spam Bot 3000
Social media research and promotion, semi-autonomous CLI bot
Stars: ✭ 79 (-21.78%)
Mutual labels:  automation, selenium
Undetected Chromedriver
Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
Stars: ✭ 365 (+261.39%)
Mutual labels:  automation, selenium
Instagram Profilecrawl
📝 quickly crawl the information (e.g. followers, tags etc...) of an instagram profile.
Stars: ✭ 816 (+707.92%)
Mutual labels:  automation, selenium
Singlefile
Web Extension for Firefox/Chrome/MS Edge and CLI tool to save a faithful copy of an entire web page in a single HTML file
Stars: ✭ 4,417 (+4273.27%)
Mutual labels:  screenshot, selenium
Wdio Workshop
WebdriverIO Workshop
Stars: ✭ 20 (-80.2%)
Mutual labels:  automation, selenium
Tor Browser Selenium
Tor Browser automation with Selenium.
Stars: ✭ 267 (+164.36%)
Mutual labels:  automation, selenium
Playwright Go
Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
Stars: ✭ 272 (+169.31%)
Mutual labels:  automation, selenium
Cbt Tunnel Nodejs
Node.js module for Local Connections to crossbrowsertesting.com
Stars: ✭ 39 (-61.39%)
Mutual labels:  screenshot, selenium
Webwhatsappbot
Core to automatize whatsapp - working 11/2018
Stars: ✭ 59 (-41.58%)
Mutual labels:  automation, selenium

wdio-screenshot

A WebdriverIO plugin. Additional commands for taking screenshots with WebdriverIO.

Build Status Build Status Windows npm package

Browser Support

Build Status

  • Firefox
  • Chrome
  • Internet Explorer
  • Safari
  • iOS1 2

Installation

Install wdio-screenshot via NPM as usual:

$ npm install wdio-screenshot --save-dev

Instructions on how to install WebdriverIO can be found here.

Note: If you want to improve performance, you can install GraphicsMagick.

Configuration

Setup wdio-screenshot by adding a wdio-screenshot key to the plugins section of your WebdriverIO config.

// wdio.conf.js
exports.config = {
  // ...
  plugins: {
    'wdio-screenshot': {}
  },
  // ...
};

Usage

wdio-screenshot enhances an WebdriverIO instance with the following commands:

  • browser.saveViewportScreenshot([fileName], [{options}]);
  • browser.saveDocumentScreenshot([fileName], [{options}]);
  • browser.saveElementScreenshot([fileName], elementSelector, [{options}]);

All of these provide options that will help you to exclude unrelevant parts (e.g. content). The following options are available:

  • exclude String[]|Object[] (not yet implemented)
    exclude frequently changing parts of your screenshot, you can either pass all kinds of different WebdriverIO selector strategies that queries one or multiple elements or you can define x and y values which stretch a rectangle or polygon

  • hide String[]
    hides all elements queried by all kinds of different WebdriverIO selector strategies (via opacity: 0)

  • remove String[]
    removes all elements queried by all kinds of different WebdriverIO selector strategies (via display: none)

Use GraphicsMagick

wdio-screenshot uses GraphicsMagick for image processing when available. Without GraphicsMagick installed, wdio-screenshot fallbacks to Jimp - a image processing library written in JS.

If you want to install GraphicsMagick, follow the instructions below.

Mac OS X using Homebrew

$ brew install graphicsmagick

Ubuntu using apt-get

$ sudo apt-get install graphicsmagick

Windows

Download and install executables for GraphicsMagick. Please make sure you install the right binaries desired for your system (32bit vs 64bit).

License

MIT


1 Scaling of iOS Simulator has to be 100% for properly recorded screenshots (see here)

2 iOS scales the zoom level to fit the website into the viewport when the width of your page is bigger than the viewport. Capturing screenshots of such scaled websites with iOS is experimental and error-prone. If you notice any errors, adjust your viewport settings in your meta tag to disable scaling with <meta name="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].