Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
571 views
by Contributing Tester (12 points)
retagged by
i am using selenium 3.4.0 in java.

the line "new FirefoxProfile()" produces the error which reads: "com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V"

how can i resolve this error ??

1 Answer

0 like 0 dislike
by
If you have any legacy Guava library added to your build path, remove it.
by Contributing Tester (12 points)
i've removed all guava references but the 21.0 version, still no luck
by The go-to Tester (181 points)
Okay, checkArgument has the first parameter to be passed as boolean, IInd one string and Object is optional.

So, add boolean condition first and then any String and Object.

Hope that helps!
by Contributing Tester (12 points)
the method is in the package "com.google.common.base.Preconditions" which obviously i cannot change, so how can i "add boolean condition first and then any String and Object" ? is there a way to update the google code ?!?
by The go-to Tester (222 points)
It looks like you are using the private repository. Contact your administrator and make sure that all files in the repository are up to date.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...