Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to Puppeteer
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Tam Mullen
August 29, 2018
Technology
0
97
Introduction to Puppeteer
Introduction to using Puppeteer in conjunction with Dev Tools such as Coverage tool.
Tam Mullen
August 29, 2018
Tweet
Share
Other Decks in Technology
See All in Technology
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
5.7k
AzureでのIaC - Bicep? Terraform? それ早く言ってよ会議
torumakabe
1
620
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
220
20260208_第66回 コンピュータビジョン勉強会
keiichiito1978
0
210
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
1
170
SREチームをどう作り、どう育てるか ― Findy横断SREのマネジメント
rvirus0817
0
370
Ruby版 JSXのRuxが気になる
sansantech
PRO
0
170
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
170
コンテナセキュリティの最新事情 ~ 2026年版 ~
kyohmizu
7
2.5k
Context Engineeringの取り組み
nutslove
0
380
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
780
Cloud Runでコロプラが挑む 生成AI×ゲーム『神魔狩りのツクヨミ』の裏側
colopl
0
150
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
340
Speed Design
sergeychernyshev
33
1.5k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
89
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
79
It's Worth the Effort
3n
188
29k
From π to Pie charts
rasagy
0
130
Transcript
Intro to Puppeteer Tam Mullen @tammullen
None
Coverage Tool
Coverage Tool
None
“
• Finding Dead Code • Identifying code for Lazy Loading
Coverage Tool Uses
CDP
“
None
None
None
None
None
Puppeteer Use Examples
let loginPage = new Login(page); await loginPage.enterUsername(); await loginPage.enterPassword(); constructor(page)
{ this.page = page; this.username = '#usernameOrEmail'; this.usernameSubmit = '#wp-submit, button[type="submit"]'; this.password = '#password'; this.loginSubmit = '#wp-submit, button[type="submit"]'; this.readerHome = '.following.main'; this.mySitesLink = '[data-tip-target=my-sites]'; } async enterUsername() { await this.page.type(this.username, config.testUserName); await this.page.click(this.usernameSubmit); } async enterPassword() { await this.page.waitForSelector(this.password, { visible: true }); await this.page.type(this.password, config.testPassword); }
page.coverage.startJSCoverage({ resetOnNavigation: false }) page.coverage.startCSSCoverage({ resetOnNavigation: false }) page.coverage.stopJSCoverage() page.coverage.stopCSSCoverage()
None
None
None
$ npm run start -- -v Clearing previous traces... Starting
browser... Logging in... Starting measurements for section reader... Timing initial visit to new-post... Initial time: 187.634ms Timing repeat visits to new-post... Mean time: 1336.41ms Timing initial visit to likes... Initial time: 654.691ms Timing repeat visits to likes... Mean time: 687.038ms Timing initial visit to search...
None
Thanks Tam Mullen @tammullen