Download and install IntelliJ IDEA Community Edition from https://www.jetbrains.com/idea/download/
Open IntelliJ IDEA and create a new project.
Click on File > Project Structure.
In the Project Structure dialog box, click on Libraries.
Click on the "+" sign to add a new library.
Select "From Maven" and search for "Selenium".
Select "org.seleniumhq.selenium:selenium-java" and click on "OK".
Wait for IntelliJ to download and add the Selenium library to your project.
Create a new Java class and name it "TestSelenium".
Copy and paste the following code into the TestSelenium.java
Replace "C:/chromedriver.exe" with the path to the Chrome driver on your computer.
Save the TestSelenium.java file.
Right-click on the TestSelenium.java file and click on "Run 'TestSelenium.main()'".
Wait for the Chrome browser to open and navigate to Google.
Verify that the browser opens and navigates to Google successfully.
That's all! You have successfully installed and set up Selenium with IntelliJ.