摘要: 1.各类click的操作 1.modifiers:模拟系统中一些键的使用操作。比如ctrl win视窗等 2.position:进行文本或者元素的坐标定位,只针对当前元素,若超出也不会点击其他元素 3.button 模拟鼠标的左键、中键、右键 4.click_count:多次点击鼠标的操作 5.ti 阅读全文
posted @ 2024-08-01 17:40 可爱晶 阅读(71) 评论(0) 推荐(0)
摘要: 1、打开百度网站 from playwright.sync_api import Pagedef test_baidu(page:Page): page.goto(url="https://www.baidu.com") page.wait_for_timeout(5_000) page.locat 阅读全文
posted @ 2024-08-01 17:37 可爱晶 阅读(27) 评论(0) 推荐(0)
摘要: python安装参考教程:https://gitcode.csdn.net/6628b20fc46af9264276a7a0.html 1、点击网址下载pycharm:https://www.jetbrains.com.cn 2、下载成功,点击.exe文件,点击安装,不需要改地址,立即安装即可 3、 阅读全文
posted @ 2024-08-01 17:37 可爱晶 阅读(189) 评论(0) 推荐(0)
摘要: 1、通过设置 --base-url 方式实现 阅读全文
posted @ 2024-08-01 17:37 可爱晶 阅读(24) 评论(0) 推荐(0)
摘要: 1、录制一条自动化,两种方式 playwright codegen https://www.baidu.com playwright open https://www.baidu.com 阅读全文
posted @ 2024-08-01 17:37 可爱晶 阅读(16) 评论(0) 推荐(0)