
Selenium
文章平均质量分 91
lianghaibos
这个作者很懒,什么都没留下…
展开
-
Python学习(七)-----python对Andriod控制
一、Android点击事件 Android设置“android:clickable="false"无效。 二、通过父、兄、弟节点定位元素 通过父节点定位元素(定位元素/parent::父亲属性) //android.widget.TextView[contains(@text,“请发表评论”)]/parent::android.view.ViewGroup 通过兄节点定位元素(定位元素/preceding-sibling::兄属性,[2]表示往上第二个哥哥) //android.widget.TextVie原创 2020-06-04 11:21:14 · 595 阅读 · 0 评论 -
Python针对Appium自动化的常用Import模块
Python的常用Import模块 正则表达式Math、search等 import re (Python的re模块). 获得一个有序的字典对象时 import collection from OrderedDict 模块. openpyxl只能操作xlsx文件而不能操作xls文件。 用python读写excel的强大工具:openpyxl 自动化的原理实现主依靠selenium工具。 创建了一个测试样例 unittest — 单元测试框架 创建log import logging Python time原创 2020-06-03 20:46:43 · 666 阅读 · 0 评论 -
Python学习(四) ———pyhton启动网页的环境搭建,以及运行第一个网页
Python学习(四) ———启动应用APP与网页 web自动化环境搭建(python+selenium+webdriver) 一、 准备 历史原文: Python3.7.7安装:https://blog.youkuaiyun.com/qq_40761920/article/details/106055842. Pycharm编辑器安装:https://blog.youkuaiyun.com/qq_40761920/article/details/106210737. 浏览器:Chrome 系统环境:Win10 编译工具:Pych原创 2020-05-21 09:40:20 · 1461 阅读 · 0 评论