摘要:
https://playwright.dev/python/docs/api/class-mouse/#mouse-click 下述方法都可以使用page进行调用 mouse.click(x, y, **kwargs) 鼠标点击 mouse.dblclick(x, y, **kwargs) 鼠标双击 阅读全文
posted @ 2021-11-21 22:55
木木-林
阅读(4890)
评论(0)
推荐(0)
摘要:
https://playwright.dev/python/docs/test-runners 下载插件 pip install pytest-playwright 使用page fixture来编写一个测试用例 context.new_page()相当于前置操作 yield page为后置操作 书 阅读全文
posted @ 2021-11-21 22:48
木木-林
阅读(1580)
评论(0)
推荐(0)
摘要:
https://playwright.dev/python/docs/pom playwright 页面对象模型 优点: 1、页面元素与测试用例分离,便于维护和管理 2、页面操作按照页面封装,减少重复性工作,利于复用 阅读全文
posted @ 2021-11-21 17:16
木木-林
阅读(453)
评论(0)
推荐(0)
浙公网安备 33010602011771号