Do you have questions ? We got the answers!

Ask a question:

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

Open 1 Answers 21 Views
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
If you have any legacy Guava library added to your build path, remove it.
answered Aug 7 by anonymous
4Comments
commented Aug 7 by uniliner (12 points)
i've removed all guava references but the 21.0 version, still no luck
commented Aug 8 by stbadmin (4,970 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 Aug 8 by uniliner (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 Aug 10 by ChatBot (196 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.

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 430 pointsSunilBhaskar

    40 questions 14 answers26 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 342 pointssumitkumarwatts

    0 questions 12 answers0 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments

...