WIP!
Browser = require 'selenium-webdriver-simple'
config =
browser: 'chrome' # could be any browser `selenium-webdriver` supports
verbose: yes # be verbose
selenium:
autostart: no # don't run `selenium-server` automatically
path: './vendor' # path with `selenium-server-standalone`
browser = new Browser(config)
...
selenium-server-standalonemust present in path defined inconfig.selenium.pathoption. Get it here.chromedrivermust present in$PATHin order to use Chrome/Chromium browser. Get it here.phantomjsdriver is kinda broken, so don't use it wichmocha
lib/browserparses input config and passesseleniumpart tolib/seleniumduring initialize stage- after
SeleniumServeris initialized and running,Browseris ready to accept orders Browser#quitshutdowns bothBrowserandSeleniumServer
Run npm test.
- wrap
Browser#findwithBrowserElementclass (or find another way) to be able to do advanced actions like finding the child elements - think about headless run with help of
XvfbOOB - catch all exception thrown by
selenium-webdriverto provide fallbacks