---
description: selenium Intellij is an IDE that helps you to write better and faster code. Intellij can be used in the option to Java bean and Eclipse. In this tutorial, you will learn- What is intelliJ Pre-requisites to Int
title: How to Setup IntelliJ with Selenium WebDriver
image: https://www.guru99.com/images/7-2016/072216_1053_Howtouseint1.png
---

 

[Skip to content](#main) 

## What is IntelliJ?

IntelliJ IDEA is a Java Integrated Development Environment (IDE). It is used for software development. It is developed by JetBrains. It comes under apache2 licenced ‘community edition’ as well as ‘proprietary commercial edition’. It is the finest available Java IDEs. It provides facilities like advanced code navigation and code refactoring capabilities.

## Pre-requisites to Install IntelliJ with Selenium Webdriver

For that, we need to have some pre-requisites which are as follow.

* IntelliJ
* Any Web browser (preferably Mozilla Firefox)
* JDK (Java Development Kit)
* Selenium .jar files

The required jar files can be downloaded from [Selenium.org](https://www.selenium.dev/downloads/) official site. After download, the file extracts the .jar files into the desired directory.

## How to Download & Install IntelliJ

**Step 1)** To download [IntelliJ](https://www.jetbrains.com/idea/download/) visit the jetbrains site. Here we have selected “Community” Version. You can select “ultimate” version for mobile, web and enterprise development.

[![Download & Install IntelliJ](https://www.guru99.com/images/7-2016/072216_1053_Howtouseint1.png)](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint1.png)

**Step 2)** When you begin downloading, you will see a message like this.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint2.png)

**Step 3)** In next step, a pop-up window will open. Click on ‘run’ button.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint3.png)

**Step 4)** In this step, click on ‘next’ button in the setup wizard.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint4.png)

**Step 5)** Another pop-up window will open. Browse your destination folder and click on ‘next’ button.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint5.png)

**Step 6)** In this step,

1. Mark the checkbox – 32-bit launcher
2. Mark the checkbox for language as per your requirement
3. Click on ‘next’ button

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint6.png)

**Step 7)** In next step, click on ‘Install’ button.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint7.png)

You can see IntelliJ installing process is in progress.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint8.png)

**Step 8)** In this step,

1. To run IntelliJ, mark the checkbox and
2. Click the ‘Finish’ button

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint9.png)

**Step 9)** If you already have an older version of IntelliJ installed in your system. You can import setting from older version to the newer version. Since we don’t have any previous version installed. We will select the second option.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint10.png)

**Step 10)** When you click on ‘ok’ button in the previous step, it will ask for Jetbrain privacy policy agreement. Click on ‘Accept’ button.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint11.png)

**Step 11)** In this step, you can set plugin setting.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint12.png)

**Step 12)** In next step, select the option as per requirement. You will see options like create a new project, import project, open, etc.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint13.png)

**Step 13)** In this step,

1. Select the ‘Project’ and ‘file’ from the library and
2. Click on ‘OK’ button

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint14.png)

**Step 14)** In this step, the file we selected in the previous step appears in the project directory.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint15.png)

### RELATED ARTICLES

* [How to Download and Install Selenium IDE for Firefox & Chrome ](https://www.guru99.com/install-selenuim-ide.html "How to Download and Install Selenium IDE for Firefox & Chrome")
* [Link Text and Partial Link Text in Selenium ](https://www.guru99.com/locate-by-link-text-partial-link-text.html "Link Text and Partial Link Text in Selenium")
* [Live Selenium Webdriver Testing Project ](https://www.guru99.com/live-ecommerce-project.html "Live Selenium Webdriver Testing Project")
* [How to Handle Cookies in Selenium WebDriver ](https://www.guru99.com/handling-cookies-selenium-webdriver.html "How to Handle Cookies in Selenium WebDriver")

## Configure IntelliJ to Support Selenium

To support Selenium, you need to configure IntelliJ. For that follow the following steps.

**Step 1)** Launch your IntelliJ IDE and make a new Project. Select File **\->** New **\->** Project

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint16.png)

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint17.png)

**Step 2)** In the previous step when you Click **\->** Next. A new screen will open. In this screen, give project name. In our case, we have given name Selenium\_Guru99\. Then Click **\->** Finish. Your project has been created in IntelliJ.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint18.png)

**Step 3)** Now You need to add the Selenium’s .jar files into intelliJ as external libraries.

For this Click go to File **\->** Project Structure **\->** in a project setting tab look for Modules **\->** Dependencies **\->** Click on ‘+’ Sign **\->** Select for JARs or directories.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint19.png)

**Step 4)** Select all the selenium .jar files from the directory and subdirectory /lib, where you have extracted after download.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint20.png)

Now, you have successfully added the .jar files into intelliJ. If you see your project structure, then you will notice that you project’s /src directory is empty.

**Step 5)** Right Click on /src directory **\->** New **\->** Java Class. Your project structure will look as shown below.

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint21.png)

## IntelliJ Selenium Example

We will use the site <https://demo.guru99.com/>

In this test scenario

* We will launch the URL
* Enter Invalid Email ID
* Click the ‘Submit’ button
* The output will be as shown below- ‘Email id is not valid’

[](https://www.guru99.com/images/7-2016/072216%5F1053%5FHowtouseint22.png)

In above result, you can see that

* When we run the code, Firefox instance is open.
* At code level, we have provided an email to webelement. Which is an input field (abc.gmail.com).
* When Selenium Webdriver clicks the ‘submit’ button, email id is verified by guru99 site.
* As we said that unregistered email would show message “Email ID is not valid.”

Following is [java](https://www.guru99.com/java-tutorial.html) code for test1.

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;

public class TestSelenium {											
			public static void main(String[] args){        
				FirefoxDriver driver=new FirefoxDriver();        
				driver.get("https://demo.guru99.com/");        
				WebElement element=driver.findElement(By.xpath("//input[@name='emailid']"));        
				element.sendKeys("abc@gmail.com");            

				WebElement button=driver.findElement(By.xpath("//input[@name='btnLogin']"));         
			button.click();    
		}
}

## Advantages of using IntelliJ

* It quickly generates getter and setter methods for object attributes.
* With simple keystrokes, you can wrap a statement in a try-catch or if-else block.
* The IDE delivers inbuilt packaging tools like gradle, SBT, grunt, bower, etc.
* Database like SQL, ORACLE, PostgreSQL, Microsoft[ SQL ](https://www.guru99.com/sql.html)Server can be accessed directly from the IDE.
* It supports different languages like Java, Javascript, Clojure, etc.
* It is supported with different operating systems like Windows, Linux, etc. It can be downloaded from JetBrains official website.

## Summary

* IntelliJ IDEA is a Java Integrated Development Environment (IDE).
* It does have facilities of advanced code navigation and code refactoring capabilities.
* The advantage of using intelliJ is
* Quickly generate getter and setter methods
* With simple key strokes, you can wrap a statement in a try-catch or if-else block
* It supports different languages like Java,[ JavaScript ](https://www.guru99.com/interactive-javascript-tutorials.html), Clojure, etc.
* It supports different O.S like Windows, Linux, etc.In
* It comes with inbuilt plugins and packaging tools
* To use with Selenium, you need to configure IntelliJ

#### Summarize this post with:

ChatGPT Perplexity Grok Google AI 

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.** 

##### Sign up for the newsletter

Subscribe for Free 

You have successfully subscribed.  
Please check your inbox. 

![AI-Newsletter]() Chosen by over **350,000+** professionals 

[Scroll to top ](#wrapper)Scroll to top 

× 

Toggle Menu Close 

Search for: 

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/htmlunit-driver-phantomjs.png","url":"https://www.guru99.com/images/htmlunit-driver-phantomjs.png","width":"481","height":"180","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/intellij-selenium-webdriver.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/selenium","name":"Selenium"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/intellij-selenium-webdriver.html","name":"How to Setup IntelliJ with Selenium WebDriver"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/intellij-selenium-webdriver.html#webpage","url":"https://www.guru99.com/intellij-selenium-webdriver.html","name":"How to Setup IntelliJ with Selenium WebDriver","dateModified":"2023-12-29T16:37:59+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/htmlunit-driver-phantomjs.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/intellij-selenium-webdriver.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/admin","name":"Krishna Rungta","url":"https://www.guru99.com/author/admin","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/krishna-rungta-v2-120x120.png","url":"https://www.guru99.com/images/krishna-rungta-v2-120x120.png","caption":"Krishna Rungta","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"Selenium","headline":"How to Setup IntelliJ with Selenium WebDriver","description":"selenium Intellij is an IDE that helps you to write better and faster code. Intellij can be used in the option to Java bean and Eclipse. In this tutorial, you will learn- What is intelliJ Pre-requisites to Int","keywords":"selenium","@type":"Article","author":{"@id":"https://www.guru99.com/author/admin","name":"Krishna Rungta"},"dateModified":"2023-12-29T16:37:59+05:30","image":{"@id":"https://www.guru99.com/images/htmlunit-driver-phantomjs.png"},"copyrightYear":"2023","name":"How to Setup IntelliJ with Selenium WebDriver","subjectOf":[{"@type":"HowTo","name":"How to Install Selenium in IntelliJ:","description":"Here is a step-by-step process on How to Install Selenium in IntelliJ:","step":[{"@type":"HowToStep","name":"Step 1) Launch IntelliJ IDE.","text":" Launch your IntelliJ IDE and make a new Project. Select File -&gt; New -&gt; Project","image":"https://www.guru99.com/images/7-2016/072216_1053_Howtouseint16.png","url":"https://www.guru99.com/intellij-selenium-webdriver.html#step1"},{"@type":"HowToStep","name":"Step 2) Set project name.","text":"In the previous step when you Click -&gt; Next. A new screen will open. In this screen, give project name. In our case, we have given name Selenium_Guru99. Then Click -&gt; Finish. Your project has been created in IntelliJ.","image":"https://www.guru99.com/images/7-2016/072216_1053_Howtouseint18.png","url":"https://www.guru99.com/intellij-selenium-webdriver.html#step2"},{"@type":"HowToStep","name":"Step 3) Now add Selenium .jar file into intelliJ as external libraries.","text":"For this Click go to File -&gt; Project Structure -&gt; in a project setting tab look for Modules -&gt; Dependencies -&gt; Click on \u2018+\u2019 Sign -&gt; Select for JARs or directories.","image":"https://www.guru99.com/images/7-2016/072216_1053_Howtouseint19.png","url":"https://www.guru99.com/intellij-selenium-webdriver.html#step3"},{"@type":"HowToStep","name":"Step 4) Select all the selenium .jar files.","text":"Select all the selenium .jar files from the directory and subdirectory /lib, where you have extracted after download.","image":"https://www.guru99.com/images/7-2016/072216_1053_Howtouseint20.png","url":"https://www.guru99.com/intellij-selenium-webdriver.html#step4"},{"@type":"HowToStep","name":"Step 5) You have successfully added the .jar files into intelliJ. Check project structure","text":"Right Click on /src directory -&gt; New -&gt; Java Class. Your project structure will look as shown below.","image":"https://www.guru99.com/images/7-2016/072216_1053_Howtouseint21.png","url":"https://www.guru99.com/intellij-selenium-webdriver.html#step5"}]}],"@id":"https://www.guru99.com/intellij-selenium-webdriver.html#schema-27631","isPartOf":{"@id":"https://www.guru99.com/intellij-selenium-webdriver.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/intellij-selenium-webdriver.html#webpage"}}]}
```
