By Element Locator

class selenium_driverless.types.by.By[source]

Set of supported locator strategies.

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

alias to By.CSS_SELECTOR