-
-
Notifications
You must be signed in to change notification settings - Fork 758
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
PageFactory.initElements throwing java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;J)V #588
Comments
Possible duplicate of appium/appium#7970 |
@jaipaddy |
Upgrading to Selenium 3.2.0 does not compile Pagefactory! Do I need something more in my pom?
` |
I am going to update dependencies ASAP |
Tried again, but get a similar stacktrace - |
@jaipaddy I have published 5.0.0-beta5. Could you please try it with this pom configuration <dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>5.0.0-BETA5</version>
</dependency>
<!--there should not be dependency on selenium--> |
i am getting the below error even if i included the latest jar Java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices @before DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.6.4-beta"); //capabilities.setCapability(MobileCapabilityType.APP, "/Users/sjena/Desktop/Relay_Appium/ipa/SYW_Relay.app"); capabilities.setCapability(IOSMobileCapabilityType.LAUNCH_TIMEOUT, "500000"); |
@TikhomirovSergey Unfortunately, same thing again after removing extra selenium dependencies in my pom.xml- |
@TikhomirovSergey get the same error with BETA5
|
I tried running this and I have a similar issue. It seems to come down to a guava bug. |
Did anybody find working solution? |
#597 this should fix it |
Guys. Could you try it on 5.0.0-BETA6? Also could you check your dependencies. I suppose that you projects may depend om older Selenium versions. |
I tried BETA6 and this time it is a different exception -
The only other things in my pom are log4j and testng as in
Kindly test this combination prior to releasing another BETA version. |
@jaipaddy Send me the detailed error logs of both server and client in form of gist. Also what version of server do you use? Code-snippet of what did you tried. |
@jaipaddy Also there is an issue on Selenium latest version, so can you try including java client like below,
|
@SrinivasanTarget I am using 1.6.4-beta, I have mentioned that in my first post above. With the pom changes you have mentioned, I get the same client side exception as mentioned eariler and the server has these-
Hope this helps? |
@jaipaddy Have you tried to update testg? There are some google dependencies |
@TikhomirovSergey Upgrade to testng 6.11 doesn't seem to help here. @SrinivasanTarget gist is here https://gist.github.com/jaipaddy/323061a7875b1318376a2b3538077d2a It throws during instantiating IOSDriver; however the app is launched on the iOS device. |
We are also running into this with |
Try to update google guava in your pom.xml:
|
with appium server 1.6.6-beta3 + 5.0.0-BETA9, was getting below error at android driver creation step. Any idea why this weird error message ? The issue got solved with below entries
|
@vikramvi Its a dependency conflict issue which we are aware of, which is being rectified in latest Selenium version released couple of days back. |
It seems we found the rootcause. #714 |
Getting this issue Using below dependencies in pom.xml
|
I'm getting this error: |
Hi Team, java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V |
Description
Trying to get appium to click on my first iOS element in the app. I have set the right desired capabilities since the Appium Desktop is able to open the inspector. But it is throwing -
INFO [IOSAppRegression:55] Step:1 Device: 5s Connecting to Device.......... Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;J)V at io.appium.java_client.pagefactory.TimeOutDuration.setTime(TimeOutDuration.java:54) at io.appium.java_client.pagefactory.TimeOutDuration.setTime(TimeOutDuration.java:59) at io.appium.java_client.pagefactory.TimeOutDuration.<init>(TimeOutDuration.java:37) at io.appium.java_client.pagefactory.AppiumFieldDecorator.<init>(AppiumFieldDecorator.java:80) at ss.qa.test.IOSAppRegression.prepareTestBed(IOSAppRegression.java:85) at ss.qa.test.IOSAppRegression.main(IOSAppRegression.java:165)
Environment
Details
Gathering all iOS elements on the app to click on.
Code To Reproduce Issue [ Good To Have ]
I have the following set up inside a class -
@iOSFindBy(id = "button_dev") // for iOS native UI private IOSElement dev_button;
and the following initialization for this page -
PageFactory.initElements(new AppiumFieldDecorator(driver, 15, TimeUnit.SECONDS), introScreen);
The text was updated successfully, but these errors were encountered: