[go: up one dir, main page]

selenium-console

0.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i selenium-console

Weekly Downloads

0

Version

0.0.5

License

ISC

Last publish

Collaborators

  • askucher