selenium.webdriver.common.by

The By implementation.

Classes

By Set of supported locator strategies.
class selenium.webdriver.common.by.By[source]

Set of supported locator strategies.

CLASS_NAME = 'class name'
CSS_SELECTOR = 'css selector'
ID = 'id'
NAME = 'name'
TAG_NAME = 'tag name'
XPATH = 'xpath'