org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress)

前端 未结 4 483
春和景丽
春和景丽 2020-12-11 06:24

I am using Appium 1.4.8 for iOS . I have build the code in simulator using xcode and successfully able to launch the server as well as Appium Inspector. But while running my

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-11 06:53

    This happens because the previous session wasn't shutdown properly and it happens when there is exception thrown in your test. Restart the appium server and try it , it should resolve the issue.

    Alternatively if you starting appium as node process, you can give option '--session-override true' and this would avoid this problem

提交回复
热议问题