Reputation: 31
Can you please clarify my doubt:
WebDriver driver = new ChromeDriver();
WebDriver Interface.
That means, what ever the methods defined in Interface we are just Overriding the same with Chrome Driver Class.
Now, if we write the code like above....Still we can run the code.
Now my doubts are:
getTitle(), getCurrentUrl() etc. These methods are absolutely relate to the WebDriver Interface.
And with the creation ofObject how we get the methods like : getTitle(), getCurrentUrl()
through ChromeDriver Object?
Upvotes: 0
Views: 786
Reputation: 94
Answer to all your doubts is :
Upvotes: 2