Monday, March 13, 2017

[Demo] Selenium 3 using Java on Ubuntu Linux

Selenium 3 doesn't launch Firefox just by creating instance of firefoxDriver() to WebDriver object. Instead now there is a new Gecko driver for firefox like the Chrome driver.

What is Gecko Driver? Find out more here

Download geckodriver and chromedriver for Ubuntu and Linux.

Set system property to specify the the Geckodriver path

System.setProperty("webdriver.gecko.driver", "/lib/geckodriver");

Download the complete code from GitHub

Java questions for Selenium automation testing position

No comments:

Post a Comment

How to add logger log4j in Selenium Test?

1. Add below dependency in pom.xml file:           <dependency>             <groupId>log4j</groupId>             <artif...