0.1.1-r18456 • Published 12 years ago

selenium-webdriverjs v0.1.1-r18456

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

UPDATE: Selenium HQ is now providing an official NPM package of its own, rendering this project obsolete. See https://npmjs.org/package/selenium-webdriver and https://code.google.com/p/selenium/wiki/WebDriverJs#Installing_from_NPM.

selenium-webdriverjs

Build Status

This is an npm package of a JavaScript binding for Selenium2 (AKA. WebDriver) from SeleniumHQ (see http://code.google.com/p/selenium/wiki/WebDriverJs).

Of the different available options to drive Selenium2 from node.js I liked that adapter the most. Unfortunately, there was no npm package for it. This is what I am trying to solve.

Documentation

Have a look at the wiki of WebdriverJS at the Google Code page.

You can use selenium-webdriverjs like this:

var webdriver = require('selenium-webdriverjs'),
    client    = new webdriver.Builder().build();

client.get('http://github.com');

See this small UI testsuite where I used the mocha test runner to run Selenium2 tests.

Files

  • selenium-webdriver/*
    • The compiled output from the Selenium2 guys. This is what you get when you run "./go //javascript/node:selenium-webdriver" in the checked-out Subversion repo of Selenium2.
  • COPYING
    • Symlink to Selenium WebdriverJS's Apache License
  • update.sh
    • Updates the package: Pulls SeleniumHQ GIT master, compiles selenium-webdriver for node and updates the package.json version string.
  • tests/*
    • Beginnings of a self-test suite. Integrated with TravisCI.

Issues

If you have any suggestions (or maybe even a finished patch) for the package I'd be most delighted to add it. I also welcome other contributors or willing maintainers.

Anything relating to the fine code itself please see the issue tracker at the Google Code page.

License

I put my work (the mere packaging) in the public domain, or, failing this (in countries where this is not possible) publish it under the same license as the original code (Apache License).