pip list,看下Appium是哪个版本的
最新版本这样传递
capabilities_options = UiAutomator2Options().load_capabilities(capabilities)
appium_server_url = 'http://localhost:4723'
webdriver.Remote(command_executor=appium_server_url,options=capabilities_options)
解决了老师是platformVersion版本问题