Skip to content

Commit

Permalink
make sure setValue and getContexts respect custom selendroid port (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Jul 11, 2014
1 parent a4b1838 commit 7adeed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devices/android/selendroid.js
Expand Up @@ -457,7 +457,7 @@ Selendroid.prototype.getContexts = function (cb) {
}

var selendroidViews = [];
var reqUrl = this.selendroidHost + ':' + this.selendroidPort + '/wd/hub/session/' + this.selendroidSessionId;
var reqUrl = this.proxyHost + ':' + this.proxyPort + '/wd/hub/session/' + this.selendroidSessionId;
doRequest(reqUrl + '/window_handles', 'GET', {}, null, function (err, res) {
if (err) return cb(err);
selendroidViews = JSON.parse(res.body).value;
Expand Down Expand Up @@ -488,7 +488,7 @@ Selendroid.prototype.setValue = function (elementId, value, cb) {
}
}
}
var reqUrl = this.selendroidHost + ':' + this.selendroidPort +
var reqUrl = this.proxyHost + ':' + this.proxyPort +
'/wd/hub/session/' + this.selendroidSessionId +
'/element/' + elementId + '/value';
doRequest(reqUrl, 'POST', { value: [value] }, null, function (err) {
Expand Down

0 comments on commit 7adeed3

Please sign in to comment.