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

Commit 238bb74

Browse files
committed
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
1 parent 33fa4a4 commit 238bb74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/protractor.js

+3
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ Protractor.prototype.clearMockModules = function() {
502502
* @param {=number} opt_timeout Number of seconds to wait for Angular to start.
503503
*/
504504
Protractor.prototype.get = function(destination, opt_timeout) {
505+
if (this.ignoreSynchronization) {
506+
return this.driver.get(destination);
507+
}
505508
var timeout = opt_timeout || 10;
506509
destination = url.resolve(this.baseUrl, destination);
507510

0 commit comments

Comments
 (0)