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
PhantomJS
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Arthur Kay
June 01, 2012
Technology
230
1
Share
PhantomJS
Explaining PhantomJS and why it's useful to web developers.
Arthur Kay
June 01, 2012
More Decks by Arthur Kay
See All by Arthur Kay
Analyzing the ROI of JavaScript in Enterprise Software Development
arthurakay
0
170
Debugging your Apps with Google Chrome and Sencha
arthurakay
1
290
Announcing Ext JS 5
arthurakay
0
160
Conquering the Command Line
arthurakay
0
360
The Future of Enterprise App Development
arthurakay
0
140
Best Practices for Enterprise JavaScript Applications
arthurakay
7
2.6k
Bringing the Mobile Web to the Cloud
arthurakay
2
590
Building Native Windows 8 Apps with Sencha
arthurakay
0
270
Creating Windows 8 Apps with Ext JS
arthurakay
1
300
Other Decks in Technology
See All in Technology
AzureのIaC管理からログ調査まで、随所に役立つSkillsとCustom-Instructions / Boosting IaC and Log Analysis with Skills
aeonpeople
0
280
Expiration of Secure Boot Certificates for vSphere Virtual Machines
mirie_sd
0
110
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
170
No Types Needed, Just Callable Method Check
dak2
1
2.1k
AIが書いたコードを信じられない問題 〜レビュー負荷を下げるために変えたこと〜 / The AI Code Trust Gap: Reducing the Review Burden
bitkey
PRO
8
1.4k
エージェントスキルを作って自分のインプットに役立てよう
tsubakimoto_s
0
460
Hacobu Tech Deck
hacobu
PRO
0
130
今年注目する!データ分析プラットフォームでのAIの活用
nayuts
0
160
AI時代 に増える データ活用先
takahal
0
330
MLOps導入のための組織作りの第一歩
akasan
0
390
AIが盛んな時代に 技術記事を書き始めて起きた私の中での小さな変化
peintangos
0
230
Route 53 Global Resolver で高額課金発生!
otanikohei2023
0
130
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
180
Designing for Timeless Needs
cassininazir
0
210
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
WCS-LA-2024
lcolladotor
0
550
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.9k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
430
Believing is Seeing
oripsolob
1
120
The untapped power of vector embeddings
frankvandijk
2
1.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Transcript
Presented by Art Kay PhantomJS
Who am I? ! Arthur Kay ! Solutions
Engineer at Sencha, Inc. ! Longtime ExtJS fanatic ! Web developer for 10+ years ! www.akawebdesign.com ! @arthurakay ! Want a cool job? Sencha is hiring!
Sencha Chicago User Group ! Looking for: !
Speakers ! Ideas ! Giveaways ! Sponsors ! GET INVOLVED!
Agenda ! What is PhantomJS? ! API !
Examples ! Hack!
Don’t be scared! ! Headless WebKit browser (FAST!!!) !
JavaScript API (also CoffeeScript) ! Ideal for unit tests, site scraping, SVG rendering, network monitoring, etc. ! www.PhantomJS.org
API ! phantom ! exit(val) ! injectJs(file) !
WebPage ! evaluate(function() { … }) ! open(url, callback) ! render(filename) ! sendEvent(type, x, y) ! Filesystem ! list(path) ! isFile(path)
Examples ! Hello, World! ! Passing arguments !
Render images (screenshots) ! Webpage load speed ! PhantomLint ! Jasmine
Let’s Hack! ! Ideas: ! Website/server uptime monitoring
tool ! Crawl filesystem for HTML files and snapshot ! Simulate mouse move/click on webpage (integration test!)
Questions