Issue
I try to start with Selenium. But I am not able to get the imports from the Selenium working.
I did research on this issue and watched many youtube tutorials, but no clue, why the libraries cannot be imported for WebDriver or FirefoxDriver. All is set buildpath as libraries.
Any idea? Also tried it with different JDKs 1.8, 17, 20
- different JDKs 1.8, 17, 20
- different Selenium Java versions (currently with newest)
Solution
Not sure which tutorials you followed and I don't know if you are using a build tool such as maven, gradle or similar. I suggest to use them in case you are project doesn't have a build tool setup.
Just adding the following dependencies:
- Selenium
- Web Driver Manager
- Junit (this one in case you want to run selenium as an automated test
You should be able to execute the hello world from the official doc
You have more examples of selenium scripts in their github repo
Answered By - Gastón Schabas
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.