Why we always instantiate driver with Web Driver class

20 views
Skip to first unread message

kapil gupta

unread,
Mar 26, 2015, 7:45:40 AM3/26/15
to seleniu...@googlegroups.com
Why we always instantiate driver with WebDriver classand not with the concrete implementation of respective browsers like 

Why
WebDriver driver  = new FirefoxDriver()

and not like this 

FirefoxDriver driver = new FirefoxDriver();

Krishnan Mahadevan

unread,
Mar 26, 2015, 7:48:48 AM3/26/15
to Selenium Users

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/553a450c-411e-40db-be77-5c7a6d816b02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages