It includes Mocha unit tests and should run in IE 9 or above. It currently supports most of PHP's keywords, and even has basic
class support. The demo is interactive, so you can try editing the PHP source to see what happens.
Chai Webdriver (GitHub: goodeggs / chai-webdriver, License: MIT, npm: chai-webdriver) by Max Edmands is a Chai plugin for making markup-based assertions when using webdriver. For example:
// Start with a webdriver instance: var sw = require('selenium-webdriver'); var driver = new sw.Builder() .withCapabilities(sw.Capabilities.chrome()) .build() // And then... var chai = require('chai'); var chaiWebdriver = require('chai-webdriver'); chai.use chaiWebdriver(driver); // And you're good to go! driver.get('http://github.com'); chai.expect('#site-container h1.heading').dom.to.not.contain.text("I'm a kitty!");
It works with Selenium, chromedriver, PhantomJS, and SauceLabs.