Selenium Java Setup Guide | Complete Step-by-Step
Learn how to set up Java, IDE, Maven, and create your first Selenium script in this comprehensive tutorial. π

Automation Step by Step
43.7K views β’ Jan 30, 2025

About this video
00:00 *TOPICS*
02:21 How to setup Java
16:41 How to setup IDE
24:12 How to setup Maven
32:12 How to create Project
57:38 Create 1st Selenium java script
Full Playlist - https://www.youtube.com/playlist?list=PLhW3qG5bs-L_zQUmcXPs0F_e159DZ8OrP
in pom.xml file on adding new dependency if you get this error: failed to read artifact descriptor..
Run command: mvn -U clean install -U forces a check for updated releases and snapshots on remote repositories
Then on Eclipse - Rt click on project - Maven - Update
My project: https://github.com/Raghav-Pal/SeleniumAutomationFramework2025
Selenium Java Project Setup - Java, Maven, IDE
Step 1 - Check JAVA is installed java -version
Step 2 - If not Install Java (Windows, Mac, Linux)
Step 3 - Set env variables JAVA_HOME & PATH and check with command java -version
Step 4 - Download and setup Eclipse or any other IDE
Step 5 - Check MAVEN is installed mvn -version
Step 6 - If not Download Maven. Set MAVEN_HOME & PATH env variable. Check mvn -version
-
Selenium Java Project Setup - Create Project
Step 1 - Open Eclipse, Create new maven project
Group Id: com.selenium.framework
Artifact Id: selenium-automation
Version: 1.0
Click Finish (Can run mvn clean install)
Step 2 - Add selenium dependency to pom.xml
Step 3 - Add selenium manager dependency to pom.xml
Step 4 - In src/main/java create new Java Class. Name it FirstTest
if you see "Source folder is not a Java project" error in eclipse run mvn eclipse:eclipse
Step 5 - Add script to run a selenium test _
#SeleniumJava #Framework
β¬β¬β¬β¬β¬β¬β¬
Share with all who may need this
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
β¬β¬β¬β¬ USEFUL LINKS β¬β¬β¬β¬
β ALL TUTORIALS - https://AutomationStepByStep.com/
β CI | CD | DEVOPS
Jenkins Beginner - https://bit.ly/2MIn8EC
Jenkins Tips & Trick - https://bit.ly/2LRt6xC
Docker - https://bit.ly/2MInnzx
Jenkinsfile - https://bit.ly/3JSMSZ7
Kubernetes - http://bit.ly/2MJIlMK
Vagrant - https://bit.ly/3MVKdBt
Ansible - https://bit.ly/3MUsY3h
Terraform - https://bit.ly/4hMh3l6
β WEB TESTING
Selenium Beginners - https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch - https://bit.ly/2N9xvR6
Selenium Python - https://bit.ly/2oyMp5x
Selenium 4 - https://bit.ly/3AiJOlP
Selenium Tips - https://bit.ly/2owxc50
Selenium Builder - https://bit.ly/2MKNtlq
Katalon Studio - https://bit.ly/2wARFdi
Robot Framework with RIDE- https://bit.ly/2Px6Ue9
Robot Framework with Eclipse - http://bit.ly/2N8DZxb
Testim - https://bit.ly/3VbnNQb
TestCafe - https://bit.ly/3O6eYmK
AccelQ - https://bit.ly/3PlsAsh
Cucumber BDD - https://bit.ly/3Cnno4z
Cypress - https://bit.ly/3PpEukM
Playwright - https://bit.ly/3iuPByJ
WebdriverIO - https://bit.ly/3IJyofA
XPath & Web Locators - https://bit.ly/3PpEvoQ
β API TESTING
Web Services (API) - https://bit.ly/2MGafL7
SoapUI - https://bit.ly/2MGahmd
Postman - https://bit.ly/2wz8LrW
Postman 2022 - https://bit.ly/3JWm4qX
Postman 2024 - https://bit.ly/3AE2wr6
Rest Assured - https://bit.ly/3zUdhRD
Karate API Testing - https://bit.ly/3w3H5Ku
General - https://bit.ly/2PYdwmV
JMeter API Testing - https://bit.ly/3AgVPar
Katalon Studio API Testing - https://bit.ly/2BwuCTN
API Mocking - https://bit.ly/3bYPsjS
β MOBILE TESTING
Appium - https://bit.ly/2ZHFSGX
Appium 2 - https://bit.ly/3UJujNJ
Mobile Playlist - https://bit.ly/2PxpeUv
β PERFORMANCE TESTING
JMeter Beginner - https://bit.ly/2oBbtIU
Gatling - https://bit.ly/3QrWfkV
Performance Testing - https://bit.ly/2wEXbLS
β SOURCE CODE MANAGEMENT
Git & GitHub - https://bit.ly/2Q1pagY
GITLAB - http://bit.ly/2kQPGyQ
β IDE
Eclipse - https://bit.ly/3AnRhQP
IntelliJ IDEA - https://bit.ly/3AnyDZ8
Visual Studio Code - https://bit.ly/2V15yvt
β PROGRAMMING
Java Beginners - https://bit.ly/2PVUcXs
Java Tips & Tricks - https://bit.ly/2CdcDnJ
Groovy - https://bit.ly/2FvWV5C
JavaScript - http://bit.ly/2KJDZ8o
TypeScript - https://bit.ly/3dvJBmz
Python - http://bit.ly/2Z4iRye
Ruby - https://bit.ly/3JRRmzf
β BUILD TOOLS
Maven - https://bit.ly/2NJdDRS
Gradle - http://bit.ly/30l3h1B
β CLOUD SERVICES
Browserstack - https://bit.ly/3w7kxZn
Saucelabs - https://bit.ly/3w7kAo1
LambdaTest - https://bit.ly/3C6TBwM
β PROJECT MANAGEMENT
Jira - https://bit.ly/3AFzE1L
β DATA FORMATS
JSON - https://bit.ly/3w450tq
XML - https://bit.ly/3PqRneH
β OTHERS
Virtualization on Windows - http://bit.ly/2SItIL9
Mock Interviews - https://bit.ly/3QGwwVJ
Redis - https://bit.ly/2N9jyCG
Misc - https://bit.ly/2Q2q5xQ
Tools & Tips - https://bit.ly/2oBfwoR
QnA Friday - https://bit.ly/2NgwGpw
Sunday Special - https://bit.ly/2wB23BO
π Connect with Raghav:
* Ask Raghav: https://bit.ly/2CoJGWf
* GitHub: https://github.com/Raghav-Pal
* Udemy: https://www.udemy.com/user/raghav-pal-3/
Shorts Eng - https://bit.ly/3H9bifV
Shorts Hindi - https://bit.ly/3XY7XqN
β‘οΈ Subscribe for more videos: https://www.youtube.com/@RaghavPal
β
02:21 How to setup Java
16:41 How to setup IDE
24:12 How to setup Maven
32:12 How to create Project
57:38 Create 1st Selenium java script
Full Playlist - https://www.youtube.com/playlist?list=PLhW3qG5bs-L_zQUmcXPs0F_e159DZ8OrP
in pom.xml file on adding new dependency if you get this error: failed to read artifact descriptor..
Run command: mvn -U clean install -U forces a check for updated releases and snapshots on remote repositories
Then on Eclipse - Rt click on project - Maven - Update
My project: https://github.com/Raghav-Pal/SeleniumAutomationFramework2025
Selenium Java Project Setup - Java, Maven, IDE
Step 1 - Check JAVA is installed java -version
Step 2 - If not Install Java (Windows, Mac, Linux)
Step 3 - Set env variables JAVA_HOME & PATH and check with command java -version
Step 4 - Download and setup Eclipse or any other IDE
Step 5 - Check MAVEN is installed mvn -version
Step 6 - If not Download Maven. Set MAVEN_HOME & PATH env variable. Check mvn -version
-
Selenium Java Project Setup - Create Project
Step 1 - Open Eclipse, Create new maven project
Group Id: com.selenium.framework
Artifact Id: selenium-automation
Version: 1.0
Click Finish (Can run mvn clean install)
Step 2 - Add selenium dependency to pom.xml
Step 3 - Add selenium manager dependency to pom.xml
Step 4 - In src/main/java create new Java Class. Name it FirstTest
if you see "Source folder is not a Java project" error in eclipse run mvn eclipse:eclipse
Step 5 - Add script to run a selenium test _
#SeleniumJava #Framework
β¬β¬β¬β¬β¬β¬β¬
Share with all who may need this
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
β¬β¬β¬β¬ USEFUL LINKS β¬β¬β¬β¬
β ALL TUTORIALS - https://AutomationStepByStep.com/
β CI | CD | DEVOPS
Jenkins Beginner - https://bit.ly/2MIn8EC
Jenkins Tips & Trick - https://bit.ly/2LRt6xC
Docker - https://bit.ly/2MInnzx
Jenkinsfile - https://bit.ly/3JSMSZ7
Kubernetes - http://bit.ly/2MJIlMK
Vagrant - https://bit.ly/3MVKdBt
Ansible - https://bit.ly/3MUsY3h
Terraform - https://bit.ly/4hMh3l6
β WEB TESTING
Selenium Beginners - https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch - https://bit.ly/2N9xvR6
Selenium Python - https://bit.ly/2oyMp5x
Selenium 4 - https://bit.ly/3AiJOlP
Selenium Tips - https://bit.ly/2owxc50
Selenium Builder - https://bit.ly/2MKNtlq
Katalon Studio - https://bit.ly/2wARFdi
Robot Framework with RIDE- https://bit.ly/2Px6Ue9
Robot Framework with Eclipse - http://bit.ly/2N8DZxb
Testim - https://bit.ly/3VbnNQb
TestCafe - https://bit.ly/3O6eYmK
AccelQ - https://bit.ly/3PlsAsh
Cucumber BDD - https://bit.ly/3Cnno4z
Cypress - https://bit.ly/3PpEukM
Playwright - https://bit.ly/3iuPByJ
WebdriverIO - https://bit.ly/3IJyofA
XPath & Web Locators - https://bit.ly/3PpEvoQ
β API TESTING
Web Services (API) - https://bit.ly/2MGafL7
SoapUI - https://bit.ly/2MGahmd
Postman - https://bit.ly/2wz8LrW
Postman 2022 - https://bit.ly/3JWm4qX
Postman 2024 - https://bit.ly/3AE2wr6
Rest Assured - https://bit.ly/3zUdhRD
Karate API Testing - https://bit.ly/3w3H5Ku
General - https://bit.ly/2PYdwmV
JMeter API Testing - https://bit.ly/3AgVPar
Katalon Studio API Testing - https://bit.ly/2BwuCTN
API Mocking - https://bit.ly/3bYPsjS
β MOBILE TESTING
Appium - https://bit.ly/2ZHFSGX
Appium 2 - https://bit.ly/3UJujNJ
Mobile Playlist - https://bit.ly/2PxpeUv
β PERFORMANCE TESTING
JMeter Beginner - https://bit.ly/2oBbtIU
Gatling - https://bit.ly/3QrWfkV
Performance Testing - https://bit.ly/2wEXbLS
β SOURCE CODE MANAGEMENT
Git & GitHub - https://bit.ly/2Q1pagY
GITLAB - http://bit.ly/2kQPGyQ
β IDE
Eclipse - https://bit.ly/3AnRhQP
IntelliJ IDEA - https://bit.ly/3AnyDZ8
Visual Studio Code - https://bit.ly/2V15yvt
β PROGRAMMING
Java Beginners - https://bit.ly/2PVUcXs
Java Tips & Tricks - https://bit.ly/2CdcDnJ
Groovy - https://bit.ly/2FvWV5C
JavaScript - http://bit.ly/2KJDZ8o
TypeScript - https://bit.ly/3dvJBmz
Python - http://bit.ly/2Z4iRye
Ruby - https://bit.ly/3JRRmzf
β BUILD TOOLS
Maven - https://bit.ly/2NJdDRS
Gradle - http://bit.ly/30l3h1B
β CLOUD SERVICES
Browserstack - https://bit.ly/3w7kxZn
Saucelabs - https://bit.ly/3w7kAo1
LambdaTest - https://bit.ly/3C6TBwM
β PROJECT MANAGEMENT
Jira - https://bit.ly/3AFzE1L
β DATA FORMATS
JSON - https://bit.ly/3w450tq
XML - https://bit.ly/3PqRneH
β OTHERS
Virtualization on Windows - http://bit.ly/2SItIL9
Mock Interviews - https://bit.ly/3QGwwVJ
Redis - https://bit.ly/2N9jyCG
Misc - https://bit.ly/2Q2q5xQ
Tools & Tips - https://bit.ly/2oBfwoR
QnA Friday - https://bit.ly/2NgwGpw
Sunday Special - https://bit.ly/2wB23BO
π Connect with Raghav:
* Ask Raghav: https://bit.ly/2CoJGWf
* GitHub: https://github.com/Raghav-Pal
* Udemy: https://www.udemy.com/user/raghav-pal-3/
Shorts Eng - https://bit.ly/3H9bifV
Shorts Hindi - https://bit.ly/3XY7XqN
β‘οΈ Subscribe for more videos: https://www.youtube.com/@RaghavPal
β
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
43.7K
Likes
539
Duration
01:11:30
Published
Jan 30, 2025
User Reviews
4.5
(8) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
No specific trending topics match this video yet.
Explore All Trends