pycharm+appium+逍遥模拟器
本帖最后由 ferry.hui 于 2020-11-5 11:10 编辑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
页:
[1]