I tried to go through their Screenshots API & Local testing but got lost in between.. All I want is to test my front-end style guide (language agnostic), can someone direct me to a good direction please?
Asked
Active
Viewed 918 times
1 Answers
2
Generating screenshots for internal URL via Screenshots API is a two-step process:
a) Setup Local Testing using the BrowserStack Local binary. The command is as follows: ./BrowserStackLocal --key KEY More details on Local Testing is available here.
b) Add the parameter "local" = true in your Rest API. For more information, refer.
Example for generating a screenshot for localhost on Windows 7-IE 8:
"UserName:KEY" -H "Content-Type: application/json" -H "Accept: application/json" -d '{"browsers": [{"os": "Windows", "os_version": "7", "browser_version": "8.0", "browser": "ie"}], "url": "http://localhost", "local": "true"}' https://www.browserstack.com/screenshots
Note: The access key for your account can be acquired from here.

Mukesh Tiwari
- 874
- 6
- 7
-
I set up something like `./BrowserStackLocal --key MYKEY --enable-logging-for-api` but got lost on the 2nd step. Is there any video tutorial somewhere? all I want is to view screenshots (multiple browsers) of my frontend local components and put them on the guide.. – ivanasetiawan Aug 15 '17 at 09:15