Let’s create a Java program using the Selenium server and Chrome Driver. It describes running a single test case using the Selenium standalone server and ChromeDriver. Step 4 – Testing with Sample Java Application The next step is an optional step and doesn’t depend on Step 5. Use this server to run your test cases written in Selenium using the Google Chrome web browser. Your Selenium server is now running with Chrome. wget Īlso, download the TestNG jar file on your system. You need to download the Selenium standalone server jar file using the below commands or visit here to find the latest version of Jar file. The Selenium Server is required to run Remote Selenium WebDrivers. sudo mv chromedriver /usr/bin/chromedriver sudo chown root:root /usr/bin/chromedriver sudo chmod +x /usr/bin/chromedriver Step 3 – Download Required Jar Files Now execute below commands to configure ChromeDriver on your system. You can find the latest ChromeDriver on its official download page. The WebDriver is an open-source tool for automated testing of web apps across multiple browsers. ChromeDriver is a standalone server which implements WebDriver’s wire protocol for Chromium. You are also required to set up ChromeDriver on your system. Next install the Google chrome web browser: sudo dnf install google-chrome-stable Step 2 – Install ChromeDriver Execute the following commands, this will enable google-chrome repo on your Fedora system: sudo dnf install fedora-workstation-repositories sudo dnf config-manager -set-enabled google-chrome sudo dnf install unzip wget java-11-openjdk java-11-openjdk-devel Step 1 – Installing Google ChromeĮnable the Google chrome repository for installing latest versions. Launch a terminal and execute the following commands to install the required packages on your system. Login to your Fedora system with Sudo privileged account. Also, you will get a sample Java program to run a small test over selenium with a headless chrome driver. This tutorial described how to set up a selenium server with a chrome driver on a Fedora system.
0 Comments
Leave a Reply. |