Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sankaritan/pybrowserstack-screenshots

Open more actions menu
 
 

Repository files navigation

pybrowserstack-screenshots

python api wrapper and client for Browserstack Screenshots API including PhantomCSS support. Starts screenshot jobs at Browserstack and downloads the screenshots when they are complete. Tests for visual regressions using PhantomCSS.

Usage

  1. Edit client.py and enter your Browserstack username and API token
  2. Create a config file for the device/os/browser combinations you wish to screenshot. See example_config/ for examples.
  3. Start the browserstack job and download baseline screenshots:
python client.py --config <config_file> --auth <username:token>

Note that "auth" attribute (browserstack username and token) is optional. When not specified, values will be taken from "main_config.properties" where all configuration variables are stored.

PhantomCSS (experimental)

  1. Download baseline screenshots:
python client.py --config <config_file> --phantomcss
  1. Run client.py a second time to generate new screenshots
  2. Test for visual regressions between the two sets using PhantomCSS:
casperjs test comparator.js

client.py params

-a, --auth <username:token>
-c, --config <config_file>
-p, --phantomcss

other requirements

comparator.js requires casperjs

For more information see http://www.browserstack.com/screenshots/api

For a full list of browsers: http://www.browserstack.com/screenshots/browsers.json

About

api wrapper and python client for Browserstack Screenshots, including phantomCSS support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 94.2%
  • JavaScript 5.8%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.