filmov
tv
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:
3. Install maven:
***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
-click on Latest stable release:
-select the right driver
-move that driver in the drivers folder in the project
-unzip the driver
-copy the latest dependency
-refresh your project
5. Create a new folder in src-test-java
-Right click on java - new - package
6. Create a new JAVA class under the package
-name = FirstSeleniumClass
7. Create main method inside the class
8. Write your first test case
-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:
Driver : WebDriver driver=new ChromeDriver();
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:
Driver :WebDriver driver=new FirefoxDriver();
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 :
Social Media:
#selenium #installation #TechProEducation
***Prerequisites:
1. Install JAVA
2. Install intellij:
3. Install maven:
***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
-click on Latest stable release:
-select the right driver
-move that driver in the drivers folder in the project
-unzip the driver
-copy the latest dependency
-refresh your project
5. Create a new folder in src-test-java
-Right click on java - new - package
6. Create a new JAVA class under the package
-name = FirstSeleniumClass
7. Create main method inside the class
8. Write your first test case
-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:
Driver : WebDriver driver=new ChromeDriver();
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:
Driver :WebDriver driver=new FirefoxDriver();
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 :
Social Media:
#selenium #installation #TechProEducation