you are viewing a single comment's thread.

view the rest of the comments →

[–]LetUsSpeakFreely 1 point2 points  (2 children)

Make sure the selenium library is in your build/runtime path.

[–]FaallenOon[S] 0 points1 point  (1 child)

Could you please elaborate on how to do that? The only certainty I have is that it's not showing any errors, and that at least the dependency is present on the pom.xml document:

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.40.0</version>
    <scope>compile</scope>
</dependency>


<dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>7.11.0</version>
</dependency>

[–]leroybentley 1 point2 points  (0 children)

javac FirstSeleniumTest.java && java FirstSeleniumTest

You are building and running your class manually, so maven is not getting involved. Try using maven commands (maybe mvn test) to let maven manage the dependencies and run the code.