when we create an object of Chrome Class using a code:
#Creating an instance of Chrome class of webdriver module
Chrome_class_object = webdriver.Chrome()
#Printing an Output
print(type(Chrome_class_object))
Output:
<class 'selenium.webdriver.chrome.webdriver.WebDriver'>
we see in output that the object belongs to selenium.webdriver.chrome.webdriver.WebDriver
class but not a Chrome class but we created it through Chrome class of webdriver so it should belong to Chrome Class. Why is that so?
Creating an instance of Chrome Class of webdriver module in selenium library