seleium(-)driver_find_element 各种方法

1.id

2.name

3.class name

4.tag name

 

以上这四个元素一般是控件的属性

5.link_text

6.partial_link_text

以上这2种方式一般适合于超链接。

7.css.seletor

 

8.xpath

 

以上这2种方法是通用的方法

 

posted on 2022-01-24 16:00  qllove  阅读(121)  评论(0编辑  收藏  举报

导航