摘要: 1、在浏览器中的console输入 document.getElementById('xiaoyou-robot-wrapper').style='display:none' 隐藏页面图标 2、 在浏览器中的console输入 document.getElementById('xiaoyou-rob 阅读全文
posted @ 2021-06-04 10:13 keep2021 阅读(589) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 安装 Docker # 更新 apt update # 安装依赖 apt install apt-transport-https ca-certificates curl software-properties-common -y # 添加 key curl -fsSL https:/ 阅读全文
posted @ 2021-05-30 14:42 keep2021 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 镜像操作 列出镜像列表 docker images 删除镜像 docker rmi <镜像名称> 搜索镜像 docker search <镜像名称> 拉取下载新镜像 docker pull <镜像名称> 导出 docker save <镜像名称> > <镜像名称>.tar 导入 docker loa 阅读全文
posted @ 2021-05-09 23:36 keep2021 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 提供了8种定位方法: id name class name tag name link text partial link text XPath CSS Selector 对应的方法: findElement(By.id()) findElement(By.name()) findElement(B 阅读全文
posted @ 2021-04-29 20:48 keep2021 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 常用匹配规则: 实例 描述 . 匹配除 "\n" 之外的任何单个字符 \d 匹配数字 \D 匹配非数字 Python: import re'''请用python编写函数find_string,从文本中搜索并打印内容,要求支持通配符星号和问号。\d:匹配所有数字\D : 匹配所有非数字(\d*):* 阅读全文
posted @ 2021-04-28 15:14 keep2021 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 安装: windows在 windows 中,以管理员身份运行 cmd 或 power shell命令:pip install pipxpipx install mitmproxy 或直接运行 pip install mitmproxy==5.2.0 macbrew install mitmprox 阅读全文
posted @ 2021-03-29 19:27 keep2021 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1、首先通过网址https://github.com.ipaddress.com/www.github.com 查看当前github.com对应的IP地址,查到的信息如下图所示 2、修改hosts文件,windows系统下修改 C:\Windows\System32\drivers\etc\HOST 阅读全文
posted @ 2021-03-18 09:40 keep2021 阅读(784) 评论(0) 推荐(0) 编辑
摘要: 在ui自动化中,与接口自动化中区别最大的是,ui自动化追求的是脚本的稳定性,那么如何保证脚本的稳定性呢?归根到底,就是元素定位的表达式,元素定位表达式稳定了,才能更好的保证ui自动化脚本的稳定性和健壮性,避免因为前端代码的改变,隔三差五的修改元素表达式。 1、杜绝使用绝对路径的XPath表达式 2、 阅读全文
posted @ 2021-03-17 20:42 keep2021 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 定义: 就是讲变量、常量以及表达式插入的一种技术,它可以解决字符串拼接的问题,以下3种方法可实现: 格式化输出 %s %d %f name="lily" age=3 num=3.14 print("my name is %s" %name) print("my name is %s,my age i 阅读全文
posted @ 2021-03-15 10:00 keep2021 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 一、xpath介绍 XPath 是一门在 XML 文档中查找信息的语言。XPath 用于在 XML 文档中通过元素和属性进行导航。 XPath 使用路径表达式在 XML 文档中进行导航 XPath 包含一个标准函数库 XPath 是 XSLT 中的主要元素 XPath 是一个 W3C 标准 节点 在 阅读全文
posted @ 2021-03-10 16:13 keep2021 阅读(331) 评论(0) 推荐(0) 编辑