Extract strings from apk corresponding to device language instead of default to be used with ID location strategy in Android

This commit is contained in:
Ruben Gonzalez Alonso
2014-03-26 16:48:32 +01:00
parent a7a555fc29
commit 35cfc47e1e
3 changed files with 47 additions and 15 deletions
@@ -77,7 +77,11 @@ describe("apidemo - find elements -", function () {
.elementById("buttons_1_normal").text().should.become("Normal")
.nodeify(done);
});
it('should find a single element by string id', function (done) {
driver
.elementById("activity_sample_code").text().should.become("API Demos")
.nodeify(done);
});
it('should find a single element by resource-id', function (done) {
driver
.elementById('android:id/home').should.eventually.exist