Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

getting a "NoSuchMethodError" exception when trying to start firefox via selenium 3.4.0

Open 1 Answers 30 Views
0 1
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

If you have any legacy Guava library added to your build path, remove it.
answered by
commented by (12 points)
i've removed all guava references but the 21.0 version, still no luck
commented by (192 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!
commented by (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 ?!?
commented by (200 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.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors