WebDriver cannot be resolved to a type FirefoxDriver cannot be resolved to a type

后端 未结 7 1810
一个人的身影
一个人的身影 2020-12-01 21:51

I found a similar error as mine on stackoverflow and added selenium webdriver jar files to the project using the below method :

right click on project--> goto build

7条回答
  •  再見小時候
    2020-12-01 22:25

    You just need to import two links:

    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.firefox.FirefoxDriver;
    

    or you can follow that tutorial:

    https://www.youtube.com/watch?v=7yYDOja8n_k

    It works for me.

提交回复
热议问题