Browser-stack api wrapper
This package is wrapper of browserstack api.
Install
npm install browserstack-wrapper
API
- getallbrowser()
Returns all listed browser. Parameters:\n flat or all (Optional).
- newworker()
Parameters:
(Required)
os : Operating system name listed from above function,
os_version: Operating system version listed from above function,
url: Valid url to navigate the browser,
browser: Name of browser listed from above function ,
browser_version: Version of browser listed from above function.
take_shot()
Creates new worker.
Parameters:
id: worker id returns from above function,
format: png,json,xml
get_status()
Take screenshot of worker.
Parameters:
id: worker id.
get_status_all()
Fetch current status of worker.
deleteworker()
Fetch all workers status
Parameters:
id : worker id.
status()
Delete the worker
Example code:
Returns the current status of api. var browserstack=; var api='Your user name''Your api key'; //Get all browsers api; //create new worker api; //Take screen shot api; //Delete worker api; ```