https://github.com/thisislawatts/browsersnap
CLI tool for fetching screengrabs from Browserstack
https://github.com/thisislawatts/browsersnap
Last synced: about 2 months ago
JSON representation
CLI tool for fetching screengrabs from Browserstack
- Host: GitHub
- URL: https://github.com/thisislawatts/browsersnap
- Owner: thisislawatts
- License: mit
- Created: 2016-10-29T15:54:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-15T00:35:24.000Z (over 8 years ago)
- Last Synced: 2024-06-11T19:03:32.731Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Browsersnap
===
[](https://badge.fury.io/js/browsersnap)
Installation
---
```
npm install browsersnap
```
Create a `.browserstack` file containing your account details.
```json
{
"username": "an@example.address",
"password": "bar"
}
```
Run `browsersnap browsers` to get a list of all the browsers available.
Usage
---
```
browsersnap --version
browsersnap browsers
browsersnap get [url|comma,seperated,list,of,urls]
```
A `.browsersnap` file can be added to act as config file that can be stored in version control and shared to ensure consist tests.
```json
{
"urls" : [
"http://example.com",
"http://browserstack.com"
],
"browsers": [
{
"os": "Windows",
"os_version": "10",
"browser": "edge",
"device": null,
"browser_version": "13.0"
}
]
}
```
After adding a `.browsersnap` file you can run `browsersnap get` in the same directory to use those settings.