执行语句:
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)