These are the attributes which can be used to locate elements. See the Locating Elements chapter for example usages.

The By implementation.

class selenium.webdriver.common.by.By

Bases: object

Set of supported locator strategies.

classmethod is_valid(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'

相关文章:

  • 2021-08-16
  • 2022-02-25
  • 2021-09-14
  • 2021-07-27
  • 2021-08-23
  • 2021-12-06
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2021-07-05
  • 2021-11-19
  • 2022-01-03
  • 2021-09-09
  • 2022-02-14
  • 2022-01-28
  • 2021-12-08
相关资源
相似解决方案