From 238bb7429572f9a9f6620bf1317690f1ac825960 Mon Sep 17 00:00:00 2001 From: Julie Date: Thu, 19 Dec 2013 18:10:07 -0800 Subject: [PATCH] feat(ignoresync): ignoreSynchronization now affects the behavior of browser.get Now, when ignoring synchronization, calls to browser.get are equivalent to calling browser.driver.get. Closes #306 --- lib/protractor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/protractor.js b/lib/protractor.js index 325403672..96e432e79 100644 --- a/lib/protractor.js +++ b/lib/protractor.js @@ -502,6 +502,9 @@ Protractor.prototype.clearMockModules = function() { * @param {=number} opt_timeout Number of seconds to wait for Angular to start. */ Protractor.prototype.get = function(destination, opt_timeout) { + if (this.ignoreSynchronization) { + return this.driver.get(destination); + } var timeout = opt_timeout || 10; destination = url.resolve(this.baseUrl, destination);