How to get started with Selenium 4 Step by step installation | Techpro Education
How To Install Selenium 4 Maven Project
***Prerequisites:
1. Install JAVA
2. Install intellij:
https://www.youtube.com/watch?v=lz4QHf4T3Cw
3. Install maven:
https://www.youtube.com/watch?v=lz4QHf4T3Cw
***Selenium installation
1. Create a maven project on intelliJ
-Open your intellij
-New Project - Maven - Next
-Name : myseleniumproject
-Click Finish
2. Create drivers folder in the project level
-Right click on the MySeleniumProject new -Directory
-name = drivers
3. Download chromedriver and save in the drivers folder
-go to https://chromedriver.chromium.org/
-click on Latest stable release:
-select the right driver
-move that driver in the drivers folder in the project
-unzip the driver
4. get the latest selenium-java dependencies and paste in the pom.xml file
-go to https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java
-copy the latest dependency
-paste in the pom.xml inside dependencies
-refresh your project
5. Create a new folder in src-test-java
-Right click on java - new - package
-name = com.myfirstproject
6. Create a new JAVA class under the package
-right click on com.myfirstproject - new - java
-name = FirstSeleniumClass
7. Create main method inside the class
8. Write your first test case
-adding System.setProperties("driver","path");
-creating WebDriver
-opening google page
NOTE:
IF YOU ARE USING WINDOWS, FIND THE RIGHT PATH FOR CHROMEDRIVER.
MAKE SURE TO USE .exe EXTENSION FOR WINDOWS.
FOR MAC NO NEED TO USE .exe EXTENSION.
For Chrome:
Path : System.setProperty("webdriver.chrome.driver","path to chrome driver");
Driver : WebDriver driver=new ChromeDriver();
Send command: driver.get("https://www.google.com/");
ATTENTION: if you get this error when you run - “chromedriver” cannot be opened because the developer cannot be verified.
Go to System preferences-Secutrities and privacy- Open Anyway and save.
For FireFox:
Path :System.setProperty("webdriver.gecko.driver","path to firefox driver");
Driver :WebDriver driver=new FirefoxDriver();
Send Command:driver.get("https://www.google.com/");
And run the test
Thank you for Subscribing! If you have not, Subscribe now!
➢ TechPro Education provides one of the best IT career training in as little as five months.
➢ Our Programs:
➢ Full-Stack Automation Engineer
➢ Full-Stack Java Developer
➢ Front-End Developer
➢ Back-End Developer
➢ Salesforce Admin
➢ Salesforce Developer
➢ Cyber Security
➢ Data Science
➢ AWS & DevOps Engineering
➢ Full-Stack Mobile Developer
➢ We train passionate individuals to go above and beyond in their workplace and make an outstanding contribution to the high-demand professions.
➢ We guide all individuals in gaining up-to-date technical skills, knowledge, and professionalism. Our goal is to give quality education for all individuals to go above and beyond in their workplace!
➢ We provide the right resources with the right methods using proven techniques.
➢ We serve our fully-virtual, day/evening, weekday/weekend classes with live training all over the world.
➢ We always support you with our alumni and alumni tutoring programs, career-coaching sessions, and 7-day customer service.
➢ TechPro Education has the best quality at the best price. We don't claim it, we guarantee it.
➢ Contact us for more information
Phone Numbers:
+1 917 768 74 66 (What's Up)
Email :
info@techproeducation.com
Social Media:
https://www.linkedin.com/company/techproeducation https://www.facebook.com/techproeducation https://www.instagram.com/techproeducation
https://www.youtube.com/c/TechProEducation
https://twitter.com/techproedu
www.techproeducation.com
#selenium #installation #TechProEducation
Видео How to get started with Selenium 4 Step by step installation | Techpro Education автора Байтовый Подъем
Видео How to get started with Selenium 4 Step by step installation | Techpro Education автора Байтовый Подъем
Информация
4 декабря 2023 г. 20:31:48
00:15:32
Похожие видео