Skip to content

crossbrowsertesting/API-Sample-Scripts

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
v3
 
 
 
 

CBT API Sample Scripts

These are sample scripts for using the CrossBrowserTesting API

Included Script Examples:

  • Live Tests: JavaScript, Python, PHP
  • Screenshots: JavaScript, Python, PHP
  • Comparisons: Python

See full API documentation

Live Tests API

Automate live tests by providing a URL and browser/operating system/device configuration. While running an automated live test, you can take a screenshot, record network packets, or record a video. Live tests started via the API will appear in the livetesting tab in the app

For a list of browsers compatible with the livetesting API, make a GET call https://crossbrowsertesting.com/api/v3/livetests/browsers

Live Test API

Screenshots API

Automate screenshot tests by providing a URL and a list of browser/operating system/device configurations. While running a screenshot test, you can view the results in the screenshots tab in the app.

For a list of configurations compatible with the screenshots API, make a GET call to https://crossbrowsertesting.com/api/v3/screenshots/browsers

Screenshot Test API

Screenshot Comparison API

You can compare 2 screenshots for layout differences using our screenshot layout engine. Check out the API above for more information.

Screenshot Comparison API

About

Sample scripts for getting started with the CrossBrowserTesting API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published