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

Read CSV from S3

 import csv def count_records(csv_file):     record_count = 0     first_line = None     last_line = None     # Open the CSV file and read it...