Skip to content

aravindh-browserstack/start_stop_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

start_stop_server

HTTP server to start/stop/cleanup browsers

Requirement

Write a script which accepts HTTP calls to Start, stop and cleanup browsers. Each of the operations should be different methods. Proxy setttings should be configurable. It should also take url as optional parameter. It should be done in ruby.

API Description

POST /browsers

Launches a browser instance with given browser type & optional proxy/url configs.

data required:

1) browser_type

type of browser to be launched. firefox/chrome

2) url (optional )

URL to point-to post launch

3) proxy_server & proxy_port ( optional)

Proxy server settings.

DELETE /browsers

Stops gracefully the launched browser instance

PUT /browsers

data required:

operation: cleanup

Cleans up the cookies from the last session.

Running the server

rackup -p <port>

Plugging into launchd ( Mac OSX )

cp ./startstopserver.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/startstopserver.list

About

HTTP server to start/stop/cleanup browsers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages