Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
feat(ignoresync): ignoreSynchronization now affects the behavior of b…
Browse files Browse the repository at this point in the history
…rowser.get

Now, when ignoring synchronization, calls to browser.get are equivalent to calling
browser.driver.get.

Closes #306
  • Loading branch information
juliemr committed Dec 20, 2013
1 parent 33fa4a4 commit 238bb74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 238bb74

Please sign in to comment.