python Selenium

2021-04-19 00:28

阅读:615

标签:select   ref   blog   sele   oca   css_   元素定位   object   ted   

  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"

python Selenium

标签:select   ref   blog   sele   oca   css_   元素定位   object   ted   

原文地址:https://www.cnblogs.com/amize/p/13292045.html


评论


亲,登录后才可以留言!