我正在使用Appium版本1.9.1和基于Appium Java TestNG的框架构建,但当我在真实设备上的AWS Device Farm上执行I时,我得到了以下错误:
org.openqa.selenium.WebDriverException:处理命令时发生未知的服务器端错误。原始错误:未处理的端点: /session/BC6E4901-43A6-4C66-913A-EBAF8482DD4B/wda/screen --带有参数{通配符=( "session/BC6E4901-43A6-4C66-913A-EBAF8482DD4B/wda/screen“);}的http://127.0.0.1:8100/
相同的测试用例在本地machine.Please上运行良好,并为上述问题提供了解决方案。
发布于 2019-02-22 05:41:16
嗯,我想我知道原因了。我不知道Device Farm标准环境中的WDA版本。但是,在自定义环境中,它实际上引用了两个不同版本的WDA。
测试规范片段
# The environment variables below will be auto-populated during run time.
- echo "Start appium server"
# The default WDA used is at DEVICEFARM_WDA_DERIVED_DATA_PATH_V1 (Supports versions iOS 12 and below), it is using commit f865d3. See (https://github.com/appium/appium-xcuitest-driver/tree/f865d32e78a5a8a15469bee30ed2f985d378575d)
# If you need an older WDA version or need support for node modules, use the WDA at DEVICEFARM_WDA_DERIVED_DATA_PATH_V0. (This version does not suport iOS 12)因此,如果您使用自定义环境,则/screen端点应该存在。
你能试一试,让我知道结果吗?
HTH
-James
https://stackoverflow.com/questions/54615385
复制相似问题