Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

mozilla-b2g/marionette-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marionette-debug

A marionette plugin for debugging integration tests. Currently, we have functions to handle screenshot things.

Usage

We could capture screenshot images and send it to a specified server.

And the server repository: https://github.com/mozilla-b2g/marionette-debug-server

// Expose to marionette.
client.plugin(
  'debug',
  require('marionette-debug'),
  {
    server: '192.168.1.2', // The server IP.
    port: 3000
  }
);

// Capture a screenshot.
client.debug.screenshot('Take first screenshot.');

// Send it to the 192.168.1.2 server.
client.debug.sendScreenshot();