当前位置:网站首页>【web自动化测试】Playwright快速入门,5分钟上手
【web自动化测试】Playwright快速入门,5分钟上手
2022-08-04 17:24:00 【InfoQ】
开始
安装
pip install playwright
playwright install
playwright install chromium
# or
playwright install firefox
$ playwright --help
Usage: npx playwright [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
open [options] [url] open page in browser specified via -b, --browser
codegen [options] [url] open page and generate code for user actions
install [options] [browser...] ensure browsers necessary for this version of Playwright are installed
install-deps [browser...] install dependencies necessary to run browsers (will ask for sudo permissions)
cr [options] [url] open page in Chromium
ff [options] [url] open page in Firefox
wk [options] [url] open page in WebKit
screenshot [options] <url> <filename> capture a page screenshot
pdf [options] <url> <filename> save page as pdf
show-trace [options] [trace] Show trace viewer
help [command] display help for command
运行
playwright codegen http://www.baidu.com

边栏推荐
猜你喜欢

JVM内存和垃圾回收-08.方法区

88.(cesium之家)cesium聚合图

接口测试项目(非常值得练手)

要有遥不可及的梦想,也要有脚踏实地的本事
![【 Gazebo introductory tutorial] speak the second model library into robot modeling and visualization (editor) model](/img/db/44a1ac5338879c9e6edd933c28c0af.png)
【 Gazebo introductory tutorial] speak the second model library into robot modeling and visualization (editor) model

NLP未来,路在何方?从学术前沿和业界热点谈起

Learning to Explore - Setting the Foreground Color for Fonts

pyhon爬虫之爬取图片(亲测可用)

餐饮供应链管理系统

win11如何退出安全模式
随机推荐
C. LIS or Reverse LIS?
软件测试高频面试题真实分享/网上银行转账是怎么测的,设计一下测试用例。
yarn详细入门教程
使用Redis做某个时间段在线数统计
谷歌开发者社区推荐:《Jetpack Compose 从入门到实战》新书上架,带你踏上 Compose 开发之旅~
Nacos集群搭建
从云计算到函数计算
WPF 修改 ItemContainerStyle 鼠标移动到未选中项效果和选中项背景
Json的FastJson与Jackson
树莓派安装samba用来共享文件
init和destory方法
(1), the sequential storage structure of linear table chain storage structure
荣耀互联对外开放,赋能智能硬件合作伙伴,促进全场景生态产品融合
启动项目(瑞吉外卖)
taro 滚动组件ScrollView
两个对象相同数据赋值
【日记】mysql数据库连接池
知乎高赞:拼多多和国家电网,选哪个?
乐享购(分享购)的模式:优势、亮点、收益
下一代 AutoAI:从模型为中心,到数据为中心