0.0.1 • Published 9 years ago

selenium-sessions v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

selenium-sessions

Get sesssions of selenium server with the WebDriver Wire Protocol.


Example

var Sessions = require(‘selenium-sessions’);
var Session = Sessions.Session;

var sessions = new Sessions({
  url: "http://localhost:4444/wd/hub"
});

sessions.all(function (err, data) {
  data.forEach(function (err, info){
    var session = new Session(info.id);
    session.get(function (err, info){
      session.del();
    });
  });
});