Appium 学校 appium 碰到的问题,希望能指导下小弟

wxs · 2013年12月10日 · 最后由 wxs 回复于 2013年12月10日 · 1588 次阅读


共收到 12 条回复 时间 点赞

error 提示你使用的应用即 NotesList.apk 不是以.zip 结尾的,
我也是刚安装这个开始看,具体为什么还真不知道,期待大神回复吧

wxs #11 · 2013年12月10日 Author

谢谢啊。可是我是测 apk 得啊,咱们一起学习吧

#2 楼 @wusen 配置那把 device 改成 android。。。你用 app 测 apk 肯定不行

wxs #4 · 2013年12月10日 Author

#3 楼 @spikeshen 我真笨,已经在一个好心人帮助下改了,可是超时怎么办

#4 楼 @wusen 超时?具体报什么错误了

wxs #7 · 2013年12月10日 Author

#6 楼 @spikeshen 这个错

wxs #8 · 2013年12月10日 Author

#6 楼 @spikeshen 这要怎么解决呢

#8 楼 @wusen 看下 appium 那个窗口的报错

wxs #10 · 2013年12月10日 Author

就是上面一张截图
#9 楼 @spikeshen

wxs #11 · 2013年12月10日 Author

光标卡在哪里了
#9 楼 @spikeshen

wxs #12 · 2013年12月10日 Author

require 'selenium-webdriver'
@read_timeout = 5*60 # 5 minutes
capabilities =
{
'app' => 'G:\NotePad.apk',
'browserName' => '',
'device' => 'android',
'version' => '4.2',
'app-activity'=> 'NotesList',
'app-package' => 'com.example.android.notepad'

}
#pp capabilities.merge(dala)
server_url = 'http://127.0.0.1:4723/wd/hub'
puts "wxs"
dr = Selenium::WebDriver.for(:remote,:desired_capabilities =>capabilities,:url =>server_url)
dr.manage.timeout.implicit_wait =20 #seconds
puts "dddd"
#9 楼 @spikeshen

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册