filmov
tv
How to setup and use Selenium 4 on MacOS
![preview_player](https://i.ytimg.com/vi/Fq_HZ9ArIHI/maxresdefault.jpg)
Показать описание
.
1. CREATE A JAVA PROJECT ON ECLIPSE
- Create SeleniumDemo class
2. DOWNLOAD SELENIUM 4 JAR FILES
- Download Selenium JARs in a zip file
- Move the zip file to a safe folder (Documents/JarFiles)
- Unzip the file. It will create a folder selenium-java-4
3. ADD EXTERNAL JARs TO THE CURRENT PROJECT
- Right Click on the Project -- Build Path -- Configure Build Path...
- Click on Libraries tab
- Click on Classpath
- Click on Add External JARs
- Add all the Selenium Libraries that are under "selenium-java-4..." folder
- Click on "Apply and Close"
----------------------------------------------------------------
Sample code:
----------------------------------------------------------------
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new ChromeDriver();
}
1. CREATE A JAVA PROJECT ON ECLIPSE
- Create SeleniumDemo class
2. DOWNLOAD SELENIUM 4 JAR FILES
- Download Selenium JARs in a zip file
- Move the zip file to a safe folder (Documents/JarFiles)
- Unzip the file. It will create a folder selenium-java-4
3. ADD EXTERNAL JARs TO THE CURRENT PROJECT
- Right Click on the Project -- Build Path -- Configure Build Path...
- Click on Libraries tab
- Click on Classpath
- Click on Add External JARs
- Add all the Selenium Libraries that are under "selenium-java-4..." folder
- Click on "Apply and Close"
----------------------------------------------------------------
Sample code:
----------------------------------------------------------------
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new ChromeDriver();
}