SeleniumDom.js is a mixin library for Node.js's Selenium WebDriver that adds DOM methods to Selenium's WebDriver and WebElement. That allows you to locate and query elements with a more standardized APIand to share test code between integration tests using Selenium and unit tests using something like JSDOM. Very handy for the page object pattern.
SeleniumDom.js follows semantic versioning, so feel free to depend on its major version with something like >= 1.0.0 < 2 (a.k.a ^1.0.0).
Using
var Selenium = require("selenium-webdriver")require("selenium-dom")(Selenium)var browser = new Selenium.Builder().build()browser.body // => WebElementPromise of `<body>`.