selenium-assistant

A node module that helps using browsers with selenium

  • Selenium Assistant
  • Travis CI Support
  • Contributing
  • Reference Docs
  • Modules
  • selenium-assistant
  • Classes
  • Browser
  • LocalBrowser
  • SauceLabsBrowser
  • SeleniumAssistant

Requiring the SeleniumAssistant node module will give you an instance of the SeleniumAssistant class.

Example

Usage in Node

const seleniumAssistant = require('selenium-assistant');

const browsers = seleniumAssistant.getLocalBrowsers();
browsers.map(browser => {
  console.log(browsers.getPrettyName());
  console.log(browsers.getReleaseName());

  return browser.getSeleniumDriver()
  .then((driver) => {
    return driver.get('https://google.com/')
    .then(() => {
     return seleniumAssistant.killWebDriver(driver);
    });
  });
});
image/svg+xml Group 3 Group 3 Created with Sketch.