当前位置: 首页 > news >正文

网站开发协议模板wordpress组合模板下载

网站开发协议模板,wordpress组合模板下载,计算机专业主要学什么软件,莱芜在线话题莱芜拉呱playwright是由微软开发的Web UI自动化测试工具#xff0c;支持Node.js、Python、C# 和 Java语言#xff0c;本文将介绍Python版本的Playwright使用方法。 微软开源了一个非常强大的自动化项目叫playwright-python#xff0c;项目地址#xff1a;https://github.com/micros…playwright是由微软开发的Web UI自动化测试工具支持Node.js、Python、C# 和 Java语言本文将介绍Python版本的Playwright使用方法。 微软开源了一个非常强大的自动化项目叫playwright-python项目地址https://github.com/microsoft/playwright-python  它支持主流的浏览器包含Chrome、Firefox、Safari、Microsoft Edge 等同时支持以无头模式、有头模式运行并提供了同步、异步的 API 可以结合 Pytest 测试框架使用并且支持浏览器端的自动化脚本录制。 Playwright提供的自动化技术是绿色的、功能强大、可靠且快速支持Linux、Mac以及Windows操作系统。官网https://playwright.dev/  从官网的解释官方给Playwright定位是一款真正意义上的Web端到端测试工具。 安装步骤 第 1 步安装 playwright-python 依赖库 (需要注意的是playwright库需要依赖Python3.7以上)   pip install -i https://mirrors.aliyun.com/pypi/simple/ --upgrade Playwright 第 2 步安装主流的浏览器驱动 playwright install 如果想查看Playwright支持的功能 可以直接在命令行输入playwright -h 使用Playwright可以无需写代码只需手动操作浏览器它会录制我们的操作然后自动生成代码脚本。录制脚本 1. 查看录制命令说明 playwright codegen -h Usage: playwright codegen [options] [url]open page and generate code for user actionsOptions:-o, --output file name saves the generated script to a file--target language language to generate, one of javascript, playwright-test, python, python-async,python-pytest, csharp, csharp-mstest, csharp-nunit, java (default: python)--save-trace filename record a trace for the session and save it to a file--test-id-attribute attributeName use the specified attribute to generate data test ID selectors-b, --browser browserType browser to use, one of cr, chromium, ff, firefox, wk, webkit (default:chromium)--block-service-workers block service workers--channel channel Chromium distribution channel, chrome, chrome-beta, msedge-dev, etc--color-scheme scheme emulate preferred color scheme, light or dark--device deviceName emulate device, for example iPhone 11--geolocation coordinates specify geolocation coordinates, for example 37.819722,-122.478611--ignore-https-errors ignore https errors--load-storage filename load context storage state from the file, previously saved with --save-storage--lang language specify language / locale, for example en-GB--proxy-server proxy specify proxy server, for example http://myproxy:3128 orsocks5://myproxy:8080--proxy-bypass bypass comma-separated domains to bypass proxy, for example.com,chromium.org,.domain.com--save-har filename save HAR file with all network activity at the end--save-har-glob glob pattern filter entries in the HAR by matching url against this glob pattern--save-storage filename save context storage state at the end, for later use with --load-storage--timezone time zone time zone to emulate, for example Europe/Rome--timeout timeout timeout for Playwright actions in milliseconds, no timeout by default--user-agent ua string specify user agent string--viewport-size size specify browser viewport size in pixels, for example 1280, 720-h, --help display help for commandExamples:$ codegen$ codegen --targetpython$ codegen -b webkit https://example.com 比如我要在baidu.com搜索用chromium驱动将结果保存为test.py的python文件。文档默认保存到 C:\Users\user\下面 playwright codegen --target python -o test.py -b chromium https://www.baidu.com
http://www.zqtcl.cn/news/379383/

相关文章:

  • 网站如何做权重php做网站登陆验证
  • 昆山制造网站的地方网站建设 有聊天工具的吗
  • 自己做网站制作需要多少钱如何免费注册网站域名
  • 如何做网站美化怎样写网站文案
  • 做网站排名的wordpress 调整 行距
  • 三亚文明城市建设服务中心报名网站房地产活动策划网站
  • 休闲食品网站建设规划书常德做网站专业公司
  • 做美工好的网站网页设计排版布局
  • 网站建设公司合同模板下载wordpress微信公众平台开发教程
  • 快速wordpress 建网站免费代理游戏
  • 网站模板 寻模板大气宽屏网站模板企业源码带后台
  • 做图片推广的网站威海高端网站建设
  • 台州网站公司建站网站首页模板图片
  • 网站建设本科毕业设计论文网址
  • 泰州企业建站程序乐清网站建设公司
  • 微信小程序网站建设哪家好郑州建设网
  • 网站流量查询站长之家自己创业做原公司一样的网站
  • 哪有专做飞织鞋面的网站广州企业网站制作哪家好
  • 如何用域名做邮箱 网站站长工具5g
  • 威海 医院网站建设宝安专业网站设计公司
  • 营销企业网站建设步骤建筑 企业官网设计
  • 网站建设的内容网站怎么做视频的软件
  • 大型网站多少钱企业咨询管理是干嘛的
  • 陕西建设银行网站小企业网站建设公司
  • linux下网站开发计算机网络技术专业主要学什么
  • 长沙网站维护公司建个门户网站
  • 做采集网站难不做科技的网站
  • 中小微企业服务平台seo怎么提升关键词的排名
  • 优秀企业网站欣赏店名设计wordpress文章列表添加字段
  • 有哪些做软件的网站服务器安装WordPress没有权限访问