当前位置:   article > 正文

Caused by: org.openqa.selenium.SessionNotCreatedException: A new session could not be created 解决方案_org.openqa.selenium.sessionnotcreatedexception: co

org.openqa.selenium.sessionnotcreatedexception: could not start a new sessio

发现本地多个case类一起进行运行出现

Caused by: org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: Problem getting session data for driver type AndroidDriver; does it implement 'get driverData'? (WARNING: The server did not provide any stacktrace information) 报错!

解决方案:

是将你的driver的变量改为static  然后直接赋值给相关类中的变量就行了!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/168438
推荐阅读
相关标签
  

闽ICP备14008679号