Unable to find an active device or emulator with OS 7. The following are available: 5ENDU19821001622

在做手机软件登录测试时出现了’Android’版本号问题,分享下我的解决方式!

pycharm窗口的日志提示是这样的:

Unable to find an active device or emulator with OS 7. The following are available: 5ENDU19821001622_第1张图片

raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to find an active device or emulator with OS 7. The following are available: 5ENDU19821001622 (10)

Appium窗口的日志提示如下:

Unable to find an active device or emulator with OS 7. The following are available: 5ENDU19821001622_第2张图片

1,上面提示我’Android’的版本号错了

Unable to find an active device or emulator with OS 7. The following are available: 5ENDU19821001622_第3张图片

2,而我写的’Android’是上面那样,所以只要改成当前版本号就行了

desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '10'

3,查看手机’Android’版本号,进入手机设置–>关于手机查看就行,如下图:
Unable to find an active device or emulator with OS 7. The following are available: 5ENDU19821001622_第4张图片

希望对大家有帮助能解决你的问题。

原文链接:https://blog.csdn.net/watch_the_sunset/article/details/106603719

你可能感兴趣的:(Unable to find an active device or emulator with OS 7. The following are available: 5ENDU19821001622)