Fix for getContexts() on Selendroid.

This commit is contained in:
Payman Delshad
2014-10-08 21:14:18 +02:00
committed by Jonah Stiennon
parent 84ec8258c7
commit 17304573a0

View File

@@ -506,7 +506,7 @@ Selendroid.prototype.getContexts = function (cb) {
}
var selendroidViews = [];
var reqUrl = this.proxyHost + ':' + this.selendroidPort + '/wd/hub/session/' + this.selendroidSessionId;
var reqUrl = this.selendroidHost + ':' + this.args.selendroidPort + '/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;