Why Do We Up cast Browser Driver Class Object To WebDriver?
Hello Folks, In this post, we will learn about a frequently asked interview question in selenium that “Why we upcast a browser driver class object to WebDriver type?”. OR, Why do we write as below: WebDriver driver= new FirefoxDriver(); WebDriver driver= new ChromeDriver (); Why not as below: FirefoxDriver driver= new FirefoxDriver(); ChromeDriver driver= new ChromeDriver (); Let’s … Continue reading Why Do We Up cast Browser Driver Class Object To WebDriver?
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed