- Download Selenium JAR
Downloading the Selenium/WebDriver 2:-
Recently WebDriver committee has pushed WebDriver 3 in the beta, so Selenium 2 (also known as WebDriver) is not readily available for downloading under download section of official website. We have to click on previous releases link to download stable version of WebDriver which was 2.53.1
Selenium Website |
After clicking on previous releases, you will be navigated to index page which has enlisted previous version of WebDriver. Click on link 2.53 as shown in image.
Download Selenium |
Zip file will start downloading after you click the link.
Selenium Zip file is getting downloaded |
You can find your zip file in your downloaded folder.
Configure Selenium JAR in Intellij IDE:-
Now that we have required JAR files with us we can configure those files in our Intellij IDE so we can start writing our first Selenium Script. We will create new folder libs in our project as shown in image.
Create new folder in Intellij |
Our new project structure is now looks like as below:-
Updated Folder Structure |
We will copy all the jars from lib folder of downloaded zip to lib folder created under this project. Note that you have to copy both selenium jars along with all jar present in libs folder of zip file.
Copying Jars from Zip folder to Project Folder. |
You can see jars files are reflected under the project.
Updated Libs folder |
We are just one step away from completing our configuration. We need to add this jars file as Library for the project. Open Module Setting by Right Clicking on Project. Click on ‘+’ button and then click on first option ‘JARs or Directories’. Select the libs folder as directory and then click on OK button. Then Click on OK button.
Open Module Setting in Intellij |
Add JARs or directories as dependency in Intellij |
Select Libs Folder as dependency |
Newly Added Dependancy |
Congratulations! You have configured Selenium JARs with Intellij IDE.
0 comments:
Post a Comment