Skip to content

Commit

Permalink
Fix Android location test
Browse files Browse the repository at this point in the history
  • Loading branch information
imurchie committed Sep 25, 2014
1 parent 90d746b commit 1e4e6f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/functional/android/apidemos/location-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ describe("apidemo - location @skip-real-device", function () {
setup(this, desired).then(function (d) { driver = d; });

it('should set geo location', function (done) {
var getText = function () { return driver.elementByXPath("//android.widget.TextView[2]").text(); };
var getText = function () {
return driver
.elementsByClassName("android.widget.TextView")
.then(function (els) {
return els[1].text();
});
};
var newLat = "27.17";
var newLong = "78.04";
driver
Expand Down

0 comments on commit 1e4e6f7

Please sign in to comment.