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
Download the complete code from GitHub
Java questions for Selenium automation testing position
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