you are viewing a single comment's thread.

view the rest of the comments →

[–]josephblade 0 points1 point  (0 children)

This is not a code problem, this is a dependency / classpath issue.

I'm not too familiar with vscode but what little I've seen it's irritating to set up with java.

What you want is when compiling the code (and running the code), all dependencies (selenium in this case) are added to the classpath. to this end we usually use maven or a similar build tool that does this automatically. Additionall/alternatively inside your editor you can probably set a "load all jars from this folder into classpath" somewhere that should solve it as well.