码迷,mamicode.com
首页 > 编程语言 > 详细

python Selenium

时间:2020-07-13 11:36:57      阅读:71      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!