0.0.5 • Published 9 years ago

selenium-console v0.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

Run selenium tests in console

browser = require('selenium-console')

browser
  .init({browserName:'chrome'})
  .get("http://admc.io/wd/test-pages/guinea-pig.html")
  .title()
    .should.become('WD Tests')
  .elementById('i am a link')
  .click()
  .eval("window.location.href")
    .should.eventually.include('guinea-pig2')
  .back()
  .elementByCss('#comments').type('Bonjour!')
  .getValue().should.become('Bonjour!')
  .fin(function() { return browser.quit(); })
  .done();

More examples: https://github.com/admc/wd