Prerequisites:
Follow these steps to set up IntelliJ Idea for Selenium.
Your Screen should look something like this
Now, go to
File < Project Structure < Modules < Dependencies
There, click on the green plus(+
) icon, and choose Library. Then navigate to the extracted Selenium folder, and add "selenium-java 2.4.0.jar". After adding this, click on the green plus(+
) icon again, and now choose "Directory". This time, locate the libs folder of Selenium, and click on ok, while selecting it.
At the end, your Project Structure should look like this
Now, click on OK, and you're all set.