0

Difference between

WebDriver wb=new FirefoxDriver();
FirefoxDriver fd=new FirefoxDriver();

which one is more suitable for selenium webdriver?

SiKing
  • 10,003
  • 10
  • 39
  • 90
Tushar Hanwate
  • 121
  • 1
  • 1
  • 6
  • You answered your own question: "selenium webdriver". – SiKing Oct 09 '17 at 15:11
  • 1
    No clue what you are asking here. Please restate you question better. – IamBatman Oct 09 '17 at 15:53
  • 1
    Possible duplicate of [Difference between WebDriver and FirefoxDriver](https://stackoverflow.com/questions/24719556/difference-between-webdriver-and-firefoxdriver) – timbre timbre Oct 09 '17 at 17:07
  • 2
    Possible duplicate of [WebDriver vs ChromeDriver](https://stackoverflow.com/questions/39378442/webdriver-vs-chromedriver) – JeffC Oct 09 '17 at 17:40
  • or this: https://stackoverflow.com/questions/25757034/why-we-assign-firefoxdriver-instance-to-webdriver – timbre timbre Oct 09 '17 at 17:51
  • @KirilS. The above ^^ link doesn't speaks about `FirefoxDriver fd=new FirefoxDriver();` as asked in this Question. Please go through the QA/Discussion properly before marking as duplicate to them. – undetected Selenium Oct 09 '17 at 17:59
  • @DebanjanB which of the above links? there's 3. And both marked as "possible duplicate" talk exactly about the same topic. Or you cannot generalize answer about Chrome to Firefox? – timbre timbre Oct 09 '17 at 18:38
  • 1
    its not bound to selenium, its a general problem of why to declare a variable more abstract than the implementation. in most pragmatic cases..., makes no sence. Interfaces are more for frameworks when the implementation can be of another type. otherwize its just theoretically better without benefit – Henning Luther Oct 09 '17 at 19:14

0 Answers0