Selenium3.0 文档——selenium.webdriver.common.by
selenium.webdriver.common.by.By支持的定位器分类CLASS_NAME = 'class name'
CSS_SELECTOR = 'css selector'
ID = 'id'
LINK_TEXT = 'link text'
NAME = 'name'
PARTIAL_LINK_TEXT = 'partial link text'
TAG_NAME = 'tag name'
XPATH = 'xpath'
页:
[1]