java.lang.NoSuchMethodError: org.openqa.selenium.support.ui.Wait.until(Lcom/google/common/base/Function;) using selenium-server-standalone-3.12.0

前端 未结 4 949
轮回少年
轮回少年 2021-01-19 07:38

I\'ve been struggling with selenium to fix this issue:

java.lang.NoSuchMethodError: org.openqa.selenium.support.ui.Wait.until(Lcom/google/common/base/Function         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 08:21

    I think you should check under D:\sln\ and D:\sln\lib\ if there's any other version of selenium library in there. Delete it out if there's one.

    From the error message, it seems like when you execute the batch script it use a different version of Selenium from a different selenium jar file. Probably the old version of selenium jar that haven't had the Wait.until method yet.

提交回复
热议问题