当前位置:网站首页>Chrome realizes automated testing: recording and playback web page actions
Chrome realizes automated testing: recording and playback web page actions
2022-07-24 20:24:00 【Zeze said test】
Chrome Browsers are really scary , It will roll up the relevant gadgets . Since its birth , Created one legend after another , Now you can see the operating system based on it chrome os , You can also buy a laptop that uses it as a system .
lately , The new version supports recording and playback . With this function , You can record all the operations in the browser , Save to local , Then run repeatedly through playback .
This is really the gospel of lazy cancer patients , Say goodbye to repetitive work easily . Whether it is automated office 、 automated testing 、 Reptiles , Both can be used. .
Now let's see how to use it . First , Upgrade your browser to the latest version , My current browser version 98, Then we open the recording function in the developer tool .

After the recording function is turned on , You can find it in the developer tools Recorder label , Click on + Number or new record Button to start a new recording operation .

This is the video of the official website , You can see :
https://player.bilibili.com/player.html?bvid=BV11L4y1v76C
When using the recording function , First click Start Record Button to start recording , Then all operations in the browser will be recorded , After recording , Click to end . stay Recorder All recorded scripts will be displayed under the label , Click on Replay You can replay the previous operation , This process is automatic , No need for manual participation .
There are two main application scenarios in the testing process :
1、 When conducting exploratory testing , You can quickly record your own test operations , It is convenient to add use cases later .
2、 Turn the manual test steps into automatic test code . Currently, direct export is supported puppeter Script , If not used puppeter, You can write your own code to convert tools into other tools .
Deal with some repetitive and messy daily work , Poke a surplus , For example, fishing and watching the news in my spare time . Visit each news website and record a script , Run this directly every time you need it recording . This is a video of fishing :https://player.bilibili.com/player.html?bvid=BV1aR4y157ie
边栏推荐
- Choose the appropriate container runtime for kubernetes
- Redisgraph graphic database multi activity design scheme
- Markdown to PDF API data interface
- Understand the domestic open source Magnolia license series agreement in simple terms
- Call Baidu AI open platform to realize image and character recognition
- "Hualiu is the top stream"? Share your idea of yyds
- Synthesis of peptide nucleic acid PNA labeled with heptachydrin dye cy7 cy7-pna
- MySQL advanced
- Valdo2021 - vascular space segmentation in vascular disease detection challenge (3)
- [training Day9] maze [line segment tree]
猜你喜欢
![[training Day6] game [mathematics]](/img/b2/09c752d789eead9a6b60f4b4b1d5d4.png)
[training Day6] game [mathematics]

Substr and substring function usage in SQL

Redis basic knowledge, application scenarios, cluster installation

Near infrared dye cy7.5 labeling PNA polypeptide experimental steps cy7.5-pna|188re labeling anti gene peptide nucleic acid (agpna)

How to set appium script startup parameters

Istio II traffic hijacking process

API data interface for historical data of A-share index

Working principle of envy of istio I

What should Ali pay attention to during the interview? Personal account of Alibaba interns who passed five rounds of interviews

Easy to use office network optimization tool onedns
随机推荐
A circle is displayed and can be moved
BGP - border gateway protocol
Click the button to return to the top smoothly
存储类别
Monotone stack and monotone queue (linear complexity optimization)
Mysql8 doesn't seem to support MyISAM partition tables. Does polardb-x support MyISAM partition tables?
147-利用路由元信息设置是否缓存——include和exclude使用——activated和deactivated的使用
Mass modify attribute values in objects in JS
[training Day10] point [enumeration] [bidirectional linked list]
Usage and introduction of MySQL binlog
Unitywebgl project summary (unfinished)
Thymeleaf application notes
How to integrate Kata in kubernetes cluster
Processing of null value of Oracle notes
Pix2seq: Google brain proposes a unified interface for CV tasks!
Redis common configuration description
Opengl rendering pipeline
Easy to use office network optimization tool onedns
Istio一之Envoy工作原理
Near infrared dye cy7.5 labeling PNA polypeptide experimental steps cy7.5-pna|188re labeling anti gene peptide nucleic acid (agpna)