Is this correct - FirefoxDriver driver = new FirefoxDriver();?

前端 未结 1 1356
忘掉有多难
忘掉有多难 2021-01-23 09:07

I have seen almost everybody using the statement WebDriver driver=new FirefoxDriver(); here we have created an instance of FirefoxDriver class having t

相关标签:
1条回答
  • 2021-01-23 09:47

    As you mentioned in your question that know that Firefox is the only browser you are gonna use in your selenium script then there is no constraint in using the following line of code :

    FirefoxDriver driver = new FirefoxDriver();
    

    Here you can find a detailed discussion on What is the difference between ChromeDriver and WebDriver in selenium?

    0 讨论(0)
提交回复
热议问题