A simple browser driver.
- Detect available browsers.
- Open specified browsers to visit specified URL.
- Close specified browsers.
Both on mac and windows.
Be mind that all browsers must be installed in default path.
- Chrome
- Safari
- Firefox
- IE
npm install browsers -g
to get the latest function
git clone [email protected]:totorojs/browsers.git
cd browsers
npm install -g
Detect all available browsers and visit totorojs.org
.
$ browsers --capture=totorojs.org
Specifiy chrome and firefox to visit totorojs.org.
$ browsers --capture=totorojs.org --browsers=chrome,firefox
Specify URL to visit.
Specify browsers to open.
Default: all available browsers on OS.
Show debug log.
Output version number.
Output usage information.