-2

Is there a way to work on Firefox with selenium 3.4 as

I am always getting error as below:-

"FirefoxDriver cannot be resolved to a type"

Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
Shika
  • 1
  • 1
    Possible duplicate of [WebDriver cannot be resolved to a type FirefoxDriver cannot be resolved to a type](https://stackoverflow.com/questions/31739392/webdriver-cannot-be-resolved-to-a-type-firefoxdriver-cannot-be-resolved-to-a-typ) – chrki Aug 07 '17 at 14:51

1 Answers1

0

WebDriver will support the latest firefox also. but you have to set the properties for that

download "geckodriver.exe" file and download the file from below URL :-

https://github.com/mozilla/geckodriver/releases

System.setProperty("webdriver.gecko.driver","E:\\SeleniumAutomation\\geckodriver-v0.9.0-win64\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("http://stackoverflow.com/");

Update your firefox and selenium server and client-combined jar

iamsankalp89
  • 4,607
  • 2
  • 15
  • 36
Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
  • Thanks Shubham for the reply, I set the properties as shown System.setProperty("webdriver.gecko.driver","C:\\Users\\IBM_ADMIN\\Downloads\\geckodriver-v0.18.0-win64\\geckodriver.exe"); WebDriver driver = new FirefoxDriver(); But it is still not working – Shika Aug 07 '17 at 15:34
  • Have you updated the selenium jars and Firefox browser – Shubham Jain Aug 07 '17 at 16:02
  • Firefox is updated, But please advise about How to update the selenium jars. I got error : Firefox can't be resolved to a type – Shika Aug 08 '17 at 11:14
  • Selenium Standalone Server and Selenium Client & WebDriver Language Bindings – Shubham Jain Aug 08 '17 at 11:16
  • check this out also - https://stackoverflow.com/questions/31739392/webdriver-cannot-be-resolved-to-a-type-firefoxdriver-cannot-be-resolved-to-a-typ – Shubham Jain Aug 08 '17 at 12:28