当前位置:网站首页>【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

边栏推荐
猜你喜欢
![【 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

字节二面被问到mysql事务与锁问题,我蚌埠住了

Catering Supply Chain Management System

Nacos集群搭建

基于clipboard.js对复制组件的封装

Digital-intelligent supply chain management system for chemical manufacturing industry: build a smart supply system and empower enterprises to improve production efficiency

88. (the home of cesium) cesium polymerization figure

全球电子产品需求萎靡:三星越南工厂大幅压缩产能,减少工人工作日

信息系统项目管理师必背核心考点(六十)项目集管理

MySQL学习笔记-4.数据更新时的性能问题
随机推荐
小程序学习目标
R语言dplyr包group_by函数和summarise_at函数计算dataframe计算不同分组的计数个数和均值、使用%>%符号将多个函数串起来
Boost库学习笔记(一)安装与配置
从云计算到函数计算
小程序笔记1
【Gazebo入门教程】第二讲 模型库导入与可视化机器人建模(模型编辑器)
R语言ggplot2可视化:使用patchwork包的plot_layout函数将多个可视化图像组合起来,nrow参数指定行的个数、byrow参数指定按照列顺序排布图
R语言使用ggpubr包的ggsummarystats函数可视化柱状图(通过ggfunc参数设置)、在可视化图像的下方添加描述性统计结果表格、palette参数配置柱状图及统计数据的颜色
taro 滚动组件ScrollView
R语言glm函数使用频数数据构建二分类logistic回归模型,分析的输入数据为频数数据(多个分类指标对应的阴性样本和阳性样本的频数数据)、weights参数指定频数值
租房小程序登顶码云热门
mysqlbinlog 超过500g自动删除,保留7个,求大深给个版本
WPF 光标初始化的时候 temp 文件夹满了无法创建
.NET云原生应用发展论坛--8月7日邀你一起云上探索
R语言ggpubr包的ggline函数可视化折线图、设置add参数为mean_se和dotplot可视化不同水平均值的折线图并为折线图添加误差线(se标准误差)和点阵图、设置折线和数据点边框颜色
太一集团全资收购火币旗下社交产品火信
WPF 修改 ItemContainerStyle 鼠标移动到未选中项效果和选中项背景
乐享购(分享购)的模式:优势、亮点、收益
动态数组底层是如何实现的
【日记】nodejs构建API框架以及RESTful API 和 JSON-RPC的取舍