上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 35 下一页

2022年12月8日

摘要: 安装 yum-utils yum install -y yum-utils device-mapper-persistent-data lvm2 为 yum 源添加 docker 仓库位置 yum-config-manager --add-repo https://download.docker.c 阅读全文
posted @ 2022-12-08 16:01 sunny_2016 阅读(45) 评论(0) 推荐(0)
摘要: centos7关闭图形化运行 cat /etc/inittabsystemctl get-default开机以命令模式启动,执行:systemctl set-default multi-user.target 开机以图形界面启动,执行:systemctl set-default graphical. 阅读全文
posted @ 2022-12-08 15:44 sunny_2016 阅读(121) 评论(0) 推荐(0)

2022年11月8日

摘要: import osimport pytestif __name__ == '__main__': os.system('rd /s/q temp') os.system('rd /s/q report') pytest.main(['-s','./day3/test_web.py','--allur 阅读全文
posted @ 2022-11-08 07:45 sunny_2016 阅读(240) 评论(0) 推荐(0)

2022年11月3日

摘要: 获取DOM元素基本方式 .find(selector) 搜索定位元素 .get(selector) 搜索定位元素 .contains(selector) 搜索定位元素 .children() 方法用来获取DON元素的子元素 .parents() 用来获取DOM元素的所有父元素 .parent() 用 阅读全文
posted @ 2022-11-03 14:44 sunny_2016 阅读(799) 评论(0) 推荐(0)
摘要: 1.1 CSS定位 1.1.1 绝对路径定位 目标 查找第一个文本为“猜猜看”的a标签 实现 CSS表达式 html>body>div>a[.=”猜猜看”] python表达式 driver.find_element_by_css_selector(‘html>body>div>a[.=”猜猜看”] 阅读全文
posted @ 2022-11-03 10:23 sunny_2016 阅读(205) 评论(0) 推荐(0)

2022年10月30日

摘要: python 虚拟环境 python -m venv venvdemo cd venvdemo dir cd Lib activate python 显示环境变量 echo %PATH% import sys from pprint import pprint pprint(sys.path) 虚拟 阅读全文
posted @ 2022-10-30 16:34 sunny_2016 阅读(23) 评论(0) 推荐(0)
摘要: 安装playwright: pip install -i https://mirrors.aliyun.com/pypi/simple/ playwright #安装浏览器 #playwright install -i https://mirrors.aliyun.com/pypi/simple/  阅读全文
posted @ 2022-10-30 10:32 sunny_2016 阅读(410) 评论(0) 推荐(0)

2022年10月16日

摘要: ///<reference types = 'cypress' /> 声明之后提示找不到cypress 卸载cypress重新安装正常,如果还不正确,卸载node重新安装 阅读全文
posted @ 2022-10-16 21:55 sunny_2016 阅读(74) 评论(0) 推荐(0)

2022年9月19日

摘要: 1.内置测试报告 npx cypress run --reporter=spec 2.指定运行用例 npx cypress run --reporter=spec --spec cypress\integration\cypress-study\web\page\should_demo.spec.j 阅读全文
posted @ 2022-09-19 06:37 sunny_2016 阅读(268) 评论(0) 推荐(0)

2022年9月18日

摘要: 查看cypress的缓存位置 PS D:\ema_cypress> npx cypress cache path C:\Users\antony\AppData\Local\Cypress\Cache node运行js文件时报错 node 01.js 直接找到C:\Users\antony\AppD 阅读全文
posted @ 2022-09-18 10:11 sunny_2016 阅读(769) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 35 下一页

导航