Search code examples
javaeclipseseleniumgeckodriver

Why eclipse is not recognising webdriver.gecko.driver


I'm learning selenium testing in eclipse, just started. I am trying to open firefox browser using the script . Using firefox 51 and selenium-java-3.1.0. I pasted geckodriver-v0.14.0-win64 exe file in required location and used following code:eclipse is showing error eclipse is showing error with webdriver.gecko.driver as shown in the screenshot. What could be the problem? I have added all the required jar files. from selenium 3.1.0 and also the selenium server standalone jar file


Solution

  • It looks you are copied code from some where else.

    All the strings in your program aren't surrounded by double quotes("). The double quotes you are seeing are actually called as curly double quotes. So, I suggest you manually type double quote(").