测试积点老人 发表于 2021-1-19 11:39:36

pycharm+appium+逍遥模拟器

appium已经连接上模拟器了用pycharm连接是出现以下报错
Traceback (most recent call last):
   File "E:/PythonProject/lecture001/lect001/逍遥.py", line 16, in <module>
   driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_caps)
   File "C:\ProgramData\Anaconda3\lib\site-packages\appium\webdriver\webdriver.py", line 151, in __init__
   super().__init__(
   File "E:\PythonProject\lecture001\lect001\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
   self.start_session(capabilities, browser_profile)
   File "C:\ProgramData\Anaconda3\lib\site-packages\appium\webdriver\webdriver.py", line 225, in start_session
   response = self.execute(RemoteCommand.NEW_SESSION, parameters)
   File "E:\PythonProject\lecture001\lect001\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
   self.error_handler.check_response(response)
   File "E:\PythonProject\lecture001\lect001\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
   raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: You must include a platformName capability

郭小贱 发表于 2021-1-20 10:55:00

https://blog.csdn.net/u014722022/article/details/102606425参考这篇文章看下

qqq911 发表于 2021-1-20 11:53:51

设置一个可用的平台名称

jingzizx 发表于 2021-1-20 13:18:49

2楼解答
页: [1]
查看完整版本: pycharm+appium+逍遥模拟器