-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError: org.openqa.selenium.support.ui.WebDriverWait.until(Lcom/google/common/base/Function;)Ljava/lang/Object; #26
Comments
Guava v19 seems to be the problem. Take a look here SeleniumHQ/selenium#3606 Edit: Nope, still got the issue after replacing the lib with Guava 21 manually. |
this still an issue? sorry took so long to respond 😞 |
Im still getting it using Guava 21 |
I am still facing this issue with Selenium 3.9.1 and guava 21 version. |
it definitely appears to be happening from invalid dependencies... |
@ddavison You are right. What I ended up doing was to exclude the guava dependency from every single dependency that leverages it, and then add the guava 23.0 dependency explicitly. That fixed the issue, but I don't believe that this is the right approach. A better fix needs to be implemented by the proprietors. |
I am also facing the same issue. I have latest jars in my local and added the same to libraries. We don't use maven/gradle. We build our project using ANT tool and we have all the dependency libraries in a network location and build the executable jar by ANT script. I don't find any compilation errors but while executing our project jar, I hit the following error whenever I try to use wait.until(ExpectedConditions) : java.lang.NoSuchMethodError: org.openqa.selenium.support.ui.FluentWait.until(Lcom/google/common/base/Function;)Ljava/lang/Object; Sample code which I see issue with : public static void clickSearch(WebDriver driver,By by, int timeout){ I also have few more jars in my libraries. Kindly let know if you have a solution to the same. |
any solution for this @ddavison |
I am using Selenium 3.14.0 , firefox 62.0.1, gecko driver 0.23.0 org.quartz-scheduler quartz 2.3.0
Here is my method - public LoginPage visit() { with the above details, I am getting this error - java.lang.NoSuchMethodError: org.openqa.selenium.support.ui.FluentWait.until(Lcom/google/common/base/Predicate;)V Please suggest on this. |
Hi, I am also facing the exact same issue with Selenium 3.141.59, which is packaged with guava v25. We also use ANT instead of maven/gradle. Were you able to find the solution of this problem? |
Did you happen to resolve this? Having the same issue myself and can't find a fix anywhere |
Update version of guava as 28.0-jre in pom.xml |
Hello,
i tried the following:
@Test public void testLanguageSelection() { click(Elements.LOC_LNK_SELECTLANGUAGE) .validatePresent(Elements.LOC_LNK_LANGUAGEMENUE) ; }
This does not work, a NoSuchMethodError Exception appears:
java.lang.NoSuchMethodError: org.openqa.selenium.support.ui.WebDriverWait.until(Lcom/google/common/base/Function;)Ljava/lang/Object; at io.ddavison.conductor.Locomotive.waitForCondition(Locomotive.java:279) at io.ddavison.conductor.Locomotive.waitForCondition(Locomotive.java:274) at io.ddavison.conductor.Locomotive.waitForCondition(Locomotive.java:264) at io.ddavison.conductor.Locomotive.click(Locomotive.java:288) at io.ddavison.conductor.Locomotive.click(Locomotive.java:284) at test.SideTest.testLanguageSelection(SideTest.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
I tried other links, the error stays the same. Is it not possible to click a link? Or is it a bug?
The text was updated successfully, but these errors were encountered: