2

If we create :

ChromeDriver driver=new ChromeDriver(); 

chrome driver methods will be executed.

And if we create :

WebDriver driver=new ChromeDriver(); 

again ChromeDriver methods are executed [as per method overriding].

Then why we write latter one only while executing?

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.