Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Latest commit

 

History

History
68 lines (52 loc) · 2.43 KB

device.md

File metadata and controls

68 lines (52 loc) · 2.43 KB

Table of Contents

getDescription

Returns general info about browser an OS, e.g. Example: { appid: '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}', apptype: 'firefox', vendor: 'Mozilla', name: 'Firefox', version: '55.0.2', appbuildid: '20170814073321', changeset: '45ab6e362747102d00fd75378727fcddcfd35f44', platformbuildid: '20170814073321', geckobuildid: '20170814073321', platformversion: '55.0.2', geckoversion: '55.0.2', locale: 'de', endianness: 'LE', hostname: 'Christian-Bromann-NAT', os: 'Darwin', platform: 'Darwin', hardware: 'unknown', arch: 'x86_64', processor: 'x86_64', compiler: 'gcc3', profile: 'firefox_dev_profile-BhzvUp', channel: 'release', dpi: 258, useragent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0', width: 2560, height: 1440, physicalWidth: 2560, physicalHeight: 1440, brandName: 'Mozilla Firefox' }

Returns Promise<Object> request object (see example)

getWallpaper

get Firefox wallpaper

Returns Promise<Object> request object (see example)

screenshotToDataURL

Returns base64 data url string of the browser screenshot

Returns Promise<Object> request object (see example)

screenshotToFile

Saves browser screenshot to file

Parameters

  • path String of image file to save the screenshot to (should be PNG)

Returns Promise resolves once image is written