Fix webview name in node Android sample

This commit is contained in:
Isaac Murchie
2014-07-03 09:09:43 -07:00
parent 10250698b0
commit 277cc8ee60
+5 -1
View File
@@ -50,11 +50,15 @@ describe("android webview", function () {
.click()
.sleep(5000)
.contexts()
.context('WEBVIEW_0')
.then(function (ctxs) {
console.log(ctxs);
return driver.context(ctxs[ctxs.length - 1]);
})
.elementById('name_input')
.clear()
.sendKeys('Appium User')
.sendKeys(wd.SPECIAL_KEYS.Return)
.sleep(1000)
.source().then(function (source) {
source.should.include('This is my way of saying hello');
source.should.include('Appium User');