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

Modified protractor to support testing node-webkit by using string conca... #1270

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,8 @@ Protractor.prototype.get = function(destination, opt_timeout) {
var timeout = opt_timeout ? opt_timeout : this.getPageTimeout;
var self = this;

destination = url.resolve(this.baseUrl, destination);
destination = this.baseUrl.indexOf('file://') === 0 ?
this.baseUrl + destination : url.resolve(this.baseUrl, destination);

if (this.ignoreSynchronization) {
return this.driver.get(destination);
Expand Down