Skip to content

Instantly share code, notes, and snippets.

@richardfriedman
Created October 11, 2017 12:20
Show Gist options
  • Save richardfriedman/12b0ca7507621b0e4df95f4dae598c5e to your computer and use it in GitHub Desktop.
Save richardfriedman/12b0ca7507621b0e4df95f4dae598c5e to your computer and use it in GitHub Desktop.
// include redline
var redline = require( 'redline13-webdriver' );
// load your driver via redline13
// redline13 library uses standard mechanism but presets some capabilities
var browser = redline.loadBrowser('chrome');
// You can require webdriver yourself or use redline13.webdriver
var By = redline.webdriver.By;
var until = redline.webdriver.until;
browser.get( "http://example.com" );
browser.quit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment