上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页

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 阅读(273) 评论(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 阅读(812) 评论(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 阅读(220) 评论(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 阅读(32) 评论(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 阅读(437) 评论(0) 推荐(0)

2022年10月16日

摘要: ///<reference types = 'cypress' /> 声明之后提示找不到cypress 卸载cypress重新安装正常,如果还不正确,卸载node重新安装 阅读全文
posted @ 2022-10-16 21:55 sunny_2016 阅读(76) 评论(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 阅读(274) 评论(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 阅读(787) 评论(0) 推荐(0)
摘要: 1.安装mkert 需要超级管理员权限安装 @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "ie 阅读全文
posted @ 2022-09-18 10:07 sunny_2016 阅读(290) 评论(0) 推荐(0)

2022年9月9日

摘要: \1. ~ + 版本号:例如 "tslint": "~5.11.0", 表示安装5.11.x的最新版本(不低于5.11.0), 但是不安装5.12.x,也就是说安装时不会改变大版本号和次要版本号; \2. ^ + 版本号:例如 "tslint": "5.11.0", 表示安装5.11.0及以上的版本 阅读全文
posted @ 2022-09-09 07:06 sunny_2016 阅读(1412) 评论(0) 推荐(1)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页

导航