python Selenium

时间:2020-07-13 11:36:57   收藏:0   阅读:71
  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"
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!