The API definitions in this chapter shows the absolute location of classes. However the recommended import style is as given below:
Webdriver
Then, you can access the classes as this:
Webdriver.Firefoxwebdriver. Firefoxprofilewebdriver. Chromewebdriver. Chromeoptionswebdriver. Iewebdriver. Operawebdriver. Phantomjswebdriver. Remotewebdriver. Desiredcapabilitieswebdriver. Actionchainswebdriver. Touchactionswebdriver. Proxy
The Special Keys class (keys) can imported like this:
Keys
The exception classes can is imported like this (Replace the thenameoftheexceptionclass with actual class name Gi VEN below):
From selenium.common.exceptions import [Thenameoftheexceptionclass]
conventions used in the API
Some attributes is callable (or methods) and others is non-callable (properties). All the callable attributes is ending with round brackets.
Here is a example for property:
Here's an example for a method:
Webdriver api--Part 1th