Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

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

Open 1 Answers 74 Views
0 1
i am using selenium 3.4.0 in java.

the line "new FirefoxProfile()" produces the error which reads: ";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 (151 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 "" 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 (202 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.