Skip to content

Instantly share code, notes, and snippets.

@romicgd
Created December 7, 2016 01:01
Show Gist options
  • Save romicgd/097b52a2948ed6a2748767740e2a615a to your computer and use it in GitHub Desktop.
Save romicgd/097b52a2948ed6a2748767740e2a615a to your computer and use it in GitHub Desktop.
NewRelic page load timeout
var until = $driver.until;
var By = $driver.By;
var url = 'http://www.google.com/';
var TIMEOUT = 100;
var chai = require('chai');
var chaiWebdriver = require('chai-webdriver');
chai.use(chaiWebdriver($browser));
var expect = chai.expect;
require('consoleplusplus');
console.disableColor();
$browser.manage().timeouts().pageLoadTimeout(TIMEOUT);
$browser.get(url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment