随笔分类 - web自动化0基础
摘要:8种定位方式--HTML 一、根据元素的一个特征来定位。6种 1、id : 元素的id属性,唯一的 2、class : 元素的class属性 3、tag : 元素的标签名 4、name : 元素的name属性 针对a元素: link_text : 针对a元素的文本内容 完全匹配 partial_li
阅读全文
摘要:1、安装第三方库: pip install -U selenium 2、安装驱动,驱动程序一定要跟浏览器版本匹配,下载驱动地址如下: Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads . 国内镜像地址:htt
阅读全文