赞
踩
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
Stacktrace:
UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
at getResponseForW3CError (D:\Program Files\nodejs\node_global\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (D:\Program Files\nodejs\node_global\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:392:37)
- desired_caps = {
- "deviceName": "127.0.0.1:62001",
- "app": r"D:\Program Files\PycharmProjects\app_pytest_framework\app\xxxx.apk",
- "appPackage": "xxxx",
- "appActivity": "xxxx",
- "platformName": "Android",
- "noSign": "true",
- "noReset": "true",
- "resetKeyboard": "true",
- "unicodeKeyboard": "true",
- "connectHardwareKeyboard": "true",
- "ensureWebviewsHavePages": "true",
- "nativeWebScreenshot": "true",
- "skipDeviceInitialization": "true",
- "skipServerInstallation": "true", #跳过 Appium 服务器的安装,ture为是false为否
- "platformVersion": "7.1.2",
- "newCommandTimeout": 240,
- "automationName": "UiAutomator2"
- }
- # 打开配置字典中指定的 app
- driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_caps)
"skipServerInstallation": "false"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。