Skip to content

Commit

Permalink
Merge pull request #3052 from imurchie/isaac-nodesample
Browse files Browse the repository at this point in the history
Fix webview name in node Android sample
  • Loading branch information
jlipps committed Jul 3, 2014
2 parents 1025069 + 277cc8e commit ea44285
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sample-code/examples/node/android-webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ea44285

Please sign in to comment.