What is the hardware and software requirements of Selenium?

Yosuva ArulanthuSeleniumLeave a Comment

This post will explain hardware and software requirements of selenium.

Hardware Requirements:

  1. Windows/Linux/Mac Laptop or Desktop with minimum 4GB RAM.

Software Requirements:

  1. Java JDK(Java Development Kit) – Take me to Download Page
  2. Eclipse/Any Java program development IDE
    1. Eclipse for Java Developers – Take Me to Download Page
    2. IntelliJ IDEA – Take Me to Download Page
  3. Selenium Server Standalone Jar File – Take Me to Download Page
  4. Drivers
    1. Chrome Driver – Take Me to Download Page
    2. Mozilla -GeckoDriver – Take Me to Download Page
    3. Internet Explorer Driver –Take Me to Download Page
  5. Web Browsers
    1. Chrome – https://www.google.com/chrome/
    2. Internet Explorer – https://www.microsoft.com/en-gb/download/
    3. Firefox – https://www.mozilla.org
    4. Safari – Comes with Mac OS package.
This video explains Selenium software setup on Mac machine
This video explains selenium hardware and software requirements setup.

Sample Code

Java

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
public class TestSelenium extends BaseClass{
	public static void main(String[] args) {
		System.setProperty("webdriver.chrome.driver", "./libs/chromedriver 4");
		driver=new ChromeDriver();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		driver.get("https://www.google.com/");
		driver.findElement(By.name("q")).sendKeys("test");
		driver.findElement(By.name("q")).submit();
	}
	}

Python

from selenium import webdriver
driver = webdriver.Chrome('/usr/local/bin/chromedriver')  # Optional argument, if not specified will search path.
driver.implicitly_wait(15)

driver.get("https://www.google.com/");
driver.find_element_by_name("q").send_keys("test")
driver.find_element_by_name("q").submit()
driver.quit()

Leave a Reply

Your email address will not be published. Required fields are marked *