update yiewd example again

This commit is contained in:
Jonathan Lipps
2013-09-14 13:54:27 +02:00
parent d82449e0d2
commit 37f4a95f7b
2 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -72,7 +72,7 @@
"should": "~1.2.1",
"underscore-cli": "~0.2.17",
"wd": "~0.1.4",
"yiewd": "~0.0.14",
"yiewd": "~0.0.15",
"monocle-js": "~0.1.4",
"assert": "~0.4.9",
"grunt-mocha-test": "~0.2.0",
+2 -6
View File
@@ -1,9 +1,6 @@
/*global it:true */
"use strict";
var wd = require("yiewd")
, o_O = require("monocle-js").o_O;
var wd = require("yiewd");
var desiredCaps = {
device: 'Android'
@@ -11,12 +8,11 @@ var desiredCaps = {
, "app-activity": "activities.PeopleActivity"
};
var driver = wd.remote('localhost', 4723);
var bc = function(t) { return "//button[contains(@text, '" + t + "')]"; };
var ec = function(t) { return "//editText[contains(@text, '" + t + "')]"; };
var tc = function(t) { return "//text[contains(@text, '" + t + "')]"; };
driver.run(function*() {
wd.remote('localhost', 4723).run(function*() {
try {
yield this.init(desiredCaps);
yield this.setImplicitWaitTimeout(5000);