python Selenium

  1. 八种元素定位语法

https://www.cnblogs.com/eastonliu/p/9088301.html

'''
by.py
'''
class By(object):
    """
    Set of supported locator strategies.
    """

    ID = "id"
    XPATH = "xpath"
    LINK_TEXT = "link text"
    PARTIAL_LINK_TEXT = "partial link text"
    NAME = "name"
    TAG_NAME = "tag name"
    CLASS_NAME = "class name"
    CSS_SELECTOR = "css selector"
posted @ 2020-07-13 10:51  该显示昵称已被使用了  阅读(82)  评论(0编辑  收藏  举报