node.js examples fixes

This commit is contained in:
sebv
2014-05-27 23:07:03 +08:00
parent ac918e954b
commit f89885bf2d
7 changed files with 85 additions and 115 deletions
@@ -28,6 +28,7 @@ var host = "ondemand.saucelabs.com",
var timeout = process.env.TIMEOUT || 300000;
var desired = {
browserName: '',
'appium-version': '1.0',
platformName: 'Android',
platformVersion: '4.3',
@@ -67,11 +68,12 @@ describe('notes app', function() {
browser
.elementByName("New note")
.click()
.elementByTagName("textfield")
.sleep(10000)
.elementByClassName('android.widget.TextView')
.sendKeys("This is a new note!")
.elementByName("Save")
.click()
.elementsByTagName("text")
.elementsByClassName("android.widget.TextView")
.then(function(els) {
return Q.all([
els[2].text().should.become("This is a new note!"),