I have downloaded JDK latest version and Eclipse as well as jars but when I will do import for webdriver getting mentioned error, please help me.


package newpackage;

import org.openqa.selenium.firefox.FirefoxDriver;

public class Day1 {

    public static void main(String[]  args) {
       //TODO Auto-generated method stub
    WebDriver driver = new FirefoxDriver.driver();




Exception in thread "main" java.lang.Error: Unresolved compilation problems:
   WebDriver cannot be resolved to a type
   FirefoxDriver.driver cannot be resolved to a type

   at newpackage.Day1.main(Day1.java:9)

closed as unclear what you're asking by Nitin Rastogi, c32hedge, Bharat Mane, Niels van Reijmersdal, alecxe Nov 10 at 14:47

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Please add your code so we can review it. – Lee Jensen Nov 6 at 20:23
  • Please refer attached screen ahot – Deven Nov 7 at 6:33
  • 4
    You lack the import statement. I give this -1, as this is a trivial 'hello world' example which can be googled by you and shows you did not made any effort to solve it. – Moro Nov 7 at 9:21