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
https://blog.csdn.net/u014722022/article/details/102606425参考这篇文章看下 设置一个可用的平台名称 2楼解答
页:
[1]