IntelliJ Idea on Mac and Selenium
已回答
Hello,
I am trying to help a friend who wants to learn Selenium with IntelliJ community edition on Mac. I have a PC. I downloaded Selenium for Java ("Selenium Clients and WebDriver Language Bindings"). I created Java project in IntelliJ and added as dependencies all the jar files under the root folder of my Selenium download and under lib directory and was able to use Selenium API. When I try to do the same on Mac, instead of adding all the jar files under the root, it creates a Library node and does not recognize Selenium API in Java Class.
Has anyone seen this behavior and knows how to avoid it ? I think that if I add each jar one-by-one this does not happen.
Thanks,
Gidi
请先登录再写评论。
Could you please provide some screenshots of the Windows IDE window (where it works correctly) and the macOS IDE window where it fails to recognize the dependencies? Please include the dependency nodes on both screenshots (external libraries, library etc.). Just to help understand the issue a bit better.
Also, when working with external project dependencies it is best practice to use a build tool like Maven or Gradle. It eases the dependency management a lot as it does all the download and mapping/storing of the jar libraries automatically.