解决Appium报错Message: A new session could not be.Original error: Requested a new session but one was in
解决Appium报错Requested a new session but one was in progress
报错信息如下:
selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. (Original error: Requested a new session but one was in progress)
问题原因:Appium responds with an error and then you start a new session. You need to call driver.quit() before you start a new session.
在运行程序的最后需要执行driver.quit()来结束driver,不然进程就被占用.
解决办法:在程序后面加上driver.quit()
还没有评论,来说两句吧...