Skip to content

Commit a820e49

Browse files
committed
Updated elements for iso-simple.js with TestApp.app
1 parent 86d0c86 commit a820e49

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sample-code/examples/node/ios-simple.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ describe("ios simple", function () {
4242
});
4343

4444
function populate() {
45-
var seq = _(['IntegerA', 'IntegerB']).map(function (name) {
45+
var seq = _(['IntegerA', 'IntegerB']).map(function (id) {
4646
return function (sum) {
47-
return driver.waitForElementByName(name, 3000).then(function (el) {
47+
return driver.waitForElementById(id, 3000).then(function (el) {
4848
var x = _.random(0,10);
4949
sum += x;
5050
return el.type('' + x).then(function () { return sum; })
51-
.elementByName('Done').click().sleep(1000); // dismissing keyboard
51+
.elementById('Done').click().sleep(1000); // dismissing keyboard
5252
}).then(function () { return sum; });
5353
};
5454
});

0 commit comments

Comments
 (0)