#16 楼 @wangcityboy 能否贴代码,不贴图?初看是启动 iOS 设备的。
#14 楼 @wangcityboy 手动启动模拟器啊
2.driver.find_element_by_ios_uiautomation('.elements()[1].cells()[2]') 第二个问题是一个查询语句的拼凑。
_getElementsByUIAutomation: function (selectorCode, ctx) {
if (!selectorCode) throw new Error('No code provided.');
var code;
if (selectorCode[0] !== '.') {
code = selectorCode;
} else if (ctx === null || typeof ctx === 'undefined') {
code = '$.mainWindow()' + selectorCode;
} else if (typeof ctx === 'string') {
code = '$.getElement(\'' + ctx + '\')' + selectorCode;
} else {
code = 'ctx' + selectorCode;
}
#3 楼 @wangcityboy deviceName 和 device 一样么?
把你的步骤贴出来 我们一步步解决
#8 楼 @kyotokyoking iOS 还是支持的。
java client 的 mapping
...
String SET_VALUE = "setValue";
...
...
.put(SET_VALUE, postC("/session/:sessionId/appium/element/:id/value"))
appium server 端的
rest.post('/wd/hub/session/:sessionId?/appium/element/:elementId?/value', controller.setValueImmediate);
iOSController.setValueImmediate = function (elementId, value, cb) {
value = escapeSpecialChars(value, "'");
var command = ["au.getElement('", elementId, "').setValue('", value, "')"].join('');
this.proxy(command, cb);
};
androidController.setValueImmediate = function (elementId, value, cb) {
cb(new NotYetImplementedError(), null);
};
#8 楼 @wangcityboy 论坛管理员又不是专门回答问题的… 大家交流,互帮互助。其他人回答你也一样啊
可以简单介绍下 如何使用吧
小 A 的审美雨中不同啊。。。 我也选 a
内容不错, 排版略粗糙啊。。
http://testerhome.com/topics/1328 可以看这个帖子。
哈哈,有意思。 其实 不管有线无线。 对于 adb server 而言都是一样的。
楼主的分享是好的,但是不知道楼主发帖的时候有没有看右边的发帖规则呢?
#20 楼 @seasoncool2011 建议能在 testerhome 里面分享下不?当然博文也不错。。
#4 楼 @xiang2743 解决了。3 楼说的很清楚。
亲测可用,兼容 mac。 非常棒!难得有拿过来就能用的脚本。
ADB.prototype.restartAdb = function (cb) {
this.exec("kill-server", function (err) {
if (err) {
logger.error("Error killing ADB server, going to see if it's online " +
"anyway");
}
cb();
});
};
这里就报错了。 按道理 adb kill-server 是不会报错的。
#12 楼 @seasoncool2011 不能,
All you need to do is, connect your device via usb. Then you will have an alert acknowledging the connection. Then pull down the notification tray. Tap on the usb connection. Then select media transfer. Thats it. Now you can transfer files between your computer and device without charging your device. In android phones, the os is programmed to charge the phone by default, whenever it is connected to the pc via usb.
试试看这个。
#7 楼 @seveniruby 不支持 明显,我们用功耗仪都是开着 app 动来动去 看看电流,瓦数。