Appium 原生切换到 H5 的时候,提示 ‘’ Failed to get PID for the following process ‘’ 错误

燕子 · 2019年12月26日 · 最后由 TL-cj 回复于 2020年01月17日 · 2867 次阅读

执行语句:
contexts = driver.contexts
driver.switch_to.context(contexts[-1])

就是在原生切换到 H5 页面的时候,提示以下错误:
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get PID for the following process: com.eastmind.nlb
(process name must be specified if not equal to package name)

共收到 5 条回复 时间 点赞

自己顶一下,补充一下全 log
[W3C] Matched W3C error code 'unknown error' to UnknownError
[Chromedriver] Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get PID for the following process: com.eastmind.nlb
Chromedriver
[Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
[Chromedriver] Changed state to 'stopped'
[Chromedriver] Error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get PID for the following process: com.eastmind.nlb
Chromedriver
[Chromedriver] at Object.wrappedLogger.errorAndThrow (C:\Users\elsa\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13)
[Chromedriver] at Chromedriver.errorAndThrow as start
[MJSONWP (60b1b8a5)] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get PID for the following process: com.eastmind.nlb
MJSONWP (60b1b8a5)
[MJSONWP (60b1b8a5)] at Object.wrappedLogger.errorAndThrow (C:\Users\elsa\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13)
[MJSONWP (60b1b8a5)] at Chromedriver.errorAndThrow as start
[HTTP] <-- POST /wd/hub/session/60b1b8a5-b30f-42bf-865a-2e9a8abb19d4/context 500 6411 ms - 396
[HTTP]

补充 webview 版本

使用 chromedriver 2.33

自己顶一下

是 oppo 手机吗

请问楼主这个问题解决了吗?
我也是这个问题 ,OPPO R11st

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册