楼主 问题解决了吗????? iOS 的 toast 怎么去抓取啊
Appium [appium ios XCUITest] 弹出的提示框不能捕获 群主最后是怎么解决的? 我也遇到同样的问题!!!! 还望回复
XCUITest 可以获取 toast 吗?
同问
是 iOS 的 toast 提示 不是安卓的!!!
怎么识别??
已经解决了 重新编译一下 xcode 就可以了
已经解决了 appium 的路径错了 因为是安装了俩个 appium 一个桌面版本的 一个命令行版本的 俩个 appium 的路径是不一样的
大家帮忙看一下 谢谢!!!
还有就是不是 automation 不是 Automation 第一个字母是小写
could not connect to server are you sure it's running? 重启一下 然后用自己运行的 appium 的 WebDriverAgent 重新编译一下就可以了
全部搞定了
appium 1.7.1 版本是不能支持 xcode9 以上版本的
最终原因是需要用 appium 桌面版本:1.7.1 + xcode 版本:8.3.3 xcode 下载地址http://www.swift51.com/xcode/8.33.html 百度网盘下载
Mac 版本:10.12.6
然后 WebDriverAgent 被删掉是因为没有在 iOS 设置里面的描述文件里面点击信任 点击信任就不会被删掉了
如果需要进行验证码识别需要下载一个 tesseract 验证码识别工具 在终端输入 brew install tesseract 就可以了
全部搞定了
appium 1.7.1 版本是不能支持 xcode9 以上版本的
最终原因是需要用 appium 桌面版本:1.7.1 + xcode 版本:8.3.3 xcode 下载地址http://www.swift51.com/xcode/8.33.html 百度网盘下载
Mac 版本:10.12.6
然后 WebDriverAgent 被删掉是因为没有在 iOS 设置里面的描述文件里面点击信任 点击信任就不会被删掉了
如果需要进行验证码识别需要下载一个 tesseract 验证码识别工具 在终端输入 brew install tesseract 就可以了
全部搞定了
appium 1.7.1 版本是不能支持 xcode9 以上版本的
最终原因是需要用 appium 桌面版本:1.7.1 + xcode 版本:8.3.3 xcode 下载地址http://www.swift51.com/xcode/8.33.html 百度网盘下载
Mac 版本:10.12.6
然后 WebDriverAgent 被删掉是因为没有在 iOS 设置里面的描述文件里面点击信任 点击信任就不会被删掉了
如果需要进行验证码识别需要下载一个 tesseract 验证码识别工具 在终端输入 brew install tesseract 就可以了
遇到楼主一样的问题 现在解决了吗?
现在问题是可以通过 xcode-->product-->Test 直接把 WebDriverAgent 安装到被测试的设备中 而且运行代码也可以把 APP 调起来 就是获取不到页面元素
不会自动定位到输入框进行输入账号密码等。。
大神帮忙看一下!!
这是什么原因引起的、谢谢!!
用 10.3.3 版本的 iPad 可以调起来 可以进入到登录页面 但是设置了指纹解锁 到了指纹解锁界面不会点击取消
报错信息如下:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot get '(null)' source of the current application (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 565 milliseconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'
System info: host: 'C02NP148G5RN.local', ip: '169.254.148.58', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_144'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{networkConnectionEnabled=false, bundleId=com.pingan.lanke, databaseEnabled=false, deviceName=ipad, platform=MAC, newCommandTimeout=120, platformVersion=10.3, webStorageEnabled=false, locationContextEnabled=false, automationName=XCUITest, browserName=, takesScreenshot=true, javascriptEnabled=true, platformName=iOS, udid=85988fb4f590f311730672a217b112a1f8b50a0f}]
Session ID: bf6ae59c-7840-4cf5-8986-bc8f45033126
这是新的报错
[Xcode] ), NSLocalizedRecoverySuggestion=Too many instances of this service are already running., NSLocalizedDescription=Too many instances of this service are already running.}
[Xcode] 2017-12-29 11:00:19.909 xcodebuild[47311:384372] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
[Xcode]
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[BaseDriver] Event 'wdaStartFailed' logged at 1514516419934 (11:00:19 GMT+0800 (CST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 47225)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
at XCUITestDriver.quitAndUninstall$ (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
at tryCatch (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
at XCUITestDriver.quitAndUninstall$ (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
at tryCatch (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[XCUITest] Not clearing log files. Use clearSystemFiles
capability to turn on.
[iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
at XCUITestDriver.quitAndUninstall$ (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:381:13)
at tryCatch (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/ex-wangzhiqiang004/Documents/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 23060 ms - 470
多谢大家 问题已经解决了 原因是因为在终端下了一个 appium1.6.3 然后用 xcode 编译了命令行的 WebDriverAgent
inspector 是用的客户端版的 appium1.7.1 所以重新把客户端版的 WebDriverAgent 重新 编译了一下就可以调起 inspector 了
不过出现一个新的问题了 悲催。。。。。。。
https://testerhome.com/topics/11415#reply1 执行 sh ./Scripts/bootstrap.sh 报错的帖子
问题还是没有解决
执行 sh ./Scripts/bootstrap.sh 出现报错
报错信息:error Missing space before function parentheses space-before-function-paren
然后把自带的 WebDriverAgent 删掉 在 GitHub 下载了一个 进行编译执行 sh ./Scripts/bootstrap.sh 可以通过 但是把下载的 WebDriverAgent 放入/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.62.0@appium-xcuitest-driver 路径下还是会报错。。。。
主要是现在 报这个错了 could not connect to server are you sure it's running? 之前都是没有报错
解决了吗、?
然后还有一个问题 点击那个 start session 的时候会把 iPad 安装好的 WebDriverAgent 给删除掉了
当前是 Xcode9 版本 目前还只不想升级 sh ./Scripts/bootstrap.sh 的时候报错 看论坛有人说要重新在 GitHub 下载 WebDriverAgent 用 Xcode 编译一下 不知道有没有用