TA的每日心情 无聊 4 小时前
签到天数: 528 天
连续签到: 1 天
[LV.9]测试副司令
1 测试积点
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 复制代码
我来回答