mirror of
https://github.com/appium/appium.git
synced 2026-05-07 11:30:21 -05:00
update yiewd example again
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user