Config.getConfBykey("wait.sleepInMillis");
这是个什么东西啊?我的编译器不认识 Config.getConfBykey 这个东东
官网上没看到,在哪里下载啊?是更新了 APPIUM 的库吗?
#2 楼 @benlooking 楼主 这个问题解决了吗?
#3 楼 @blue_momo2009 一起探讨探讨吧,大神们。
#1 楼 @lihuazhang 就是是远端的摁钮。web 的 button,类名叫啥啊?就是粉色的那个,也不知道他本来是什么元素,只能大致猜测是按钮。
o_myWebImageViewList = super.ReturnDriver().findElementsByAndroidUIAutomator("new UiSelector().clickable(true)");
这样写获得了一个 Object,但是之后 click 不好使。
#12 楼 @eric 就是运行 setup 之后,测试代码根本进不去。直接就停止了。
appium 的日志是
info: Getting focused package and activity
info: Device launched! Ready for commands
info: Setting command timeout to the default of 7200 secs
info: Appium session started with sessionId 47e9b6a9-93ef-4d8c-a8b4-9e5edd601843
POST /wd/hub/session 303 6688ms - 9b
debug: Appium request initiated at /wd/hub/session/47e9b6a9-93ef-4d8c-a8b4-9e5edd601843
info: Responding to client with success: {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"4.3","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"warnings":{},"desired":{"platformVersion":"4.3","app":"/Users/di_zhou/Documents/workspace/AppiumDemo/apps/ContactManager.apk","platformName":"Android","deviceName":"Android","appActivity":".ContactManager","appPackage":"com.example.android.contactmanager"},"app":"/Users/di_zhou/Documents/workspace/AppiumDemo/apps/ContactManager.apk","platformName":"Android","deviceName":"Android","appActivity":".ContactManager","appPackage":"com.example.android.contactmanager"},"sessionId":"47e9b6a9-93ef-4d8c-a8b4-9e5edd601843"}
debug: Request received with params: {}
GET /wd/hub/session/47e9b6a9-93ef-4d8c-a8b4-9e5edd601843 200 2ms - 857b
是不是超时了?最开始设置有问题?