Why we need to write WebDriver driver=new FireFox Driver(). As FirefoxDriver driver =new FirefoxDriver also serves the purpose

Why we need to write WebDriver driver=new FireFox Driver(). As FirefoxDriver driver =new FirefoxDriver also serves the purpose

Default Asked on March 20, 2016 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Webdriver is an interface that has unimplemented method that need to be implemented with test class with supportive arguments , here we are assigning firefoxDriver class properties to  webdriver interface so it will be invoked throughout the driver session .

    Train Answered on March 22, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.