Persistent Selenium rewritten in JavaScript
Go to file
John Bintz 6bfa710b80 0.2.0 2016-04-04 09:34:16 -04:00
bin Initial commit. 2015-06-08 18:49:53 -04:00
.gitignore Initial commit. 2015-06-08 18:49:53 -04:00
README.md [only-proxy-mode] Enable only proxy mode for when Selenium is elsewhere 2016-03-31 14:36:51 -04:00
index.js whoops 2016-03-31 16:28:04 -04:00
package.json 0.2.0 2016-04-04 09:34:16 -04:00
proxy.js whoops 2016-03-31 16:28:04 -04:00

README.md

Persistent Selenium in JavaScript

I'm moving to a more JavaScript-heavy environment but still wanted to preserve my development mode integration testing setup. Since I have no Capybara, I made this. It wraps selenium-standalone with an Express proxy that intercepts calls to create and destroy sessions, and ensures there's only ever one session that is never destroyed. Works great with Testium and allows me to recreate my RSpec/Cucumber + Capybara setup purely in JavaScript!

Using

npm install -g persistent_selenium, then persistent_selenium. Point your Selenium client to http://localhost:4443/wd/hub. Test away!

Command Line Arguments

  • --only-proxy: Do not download/start Selenium server locally
  • --selenium-host: The host on which a Selenium server is running (default localhost)
  • --selenium-port: The port on which a selenium server is running (default 4444)
  • Additional arguments are passed directly to a locally running Selenium server on starting