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

前端 未结 4 951
轮回少年
轮回少年 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:16

    Simple short answer: You have dependency issues with an outdated guava version!

    -> Do this: In every single project explicitly exclude the guava dependency from every single dependency that requests it (use the dependency graph to find these) or better exclude it in the parent (if you have one)

    -> Then add the guava 23.0 (or newer) dependency explicitly.

    This will fix it. Right now from somewhere an old guava version is being pulled that doesnt have the "until" method (or at least not with this parameter).

    Good Luck! :)

提交回复
热议问题