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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Arthur Kay
June 01, 2012
Technology
1
220
PhantomJS
Explaining PhantomJS and why it's useful to web developers.
Arthur Kay
June 01, 2012
Tweet
Share
More Decks by Arthur Kay
See All by Arthur Kay
Analyzing the ROI of JavaScript in Enterprise Software Development
arthurakay
0
160
Debugging your Apps with Google Chrome and Sencha
arthurakay
1
280
Announcing Ext JS 5
arthurakay
0
140
Conquering the Command Line
arthurakay
0
350
The Future of Enterprise App Development
arthurakay
0
130
Best Practices for Enterprise JavaScript Applications
arthurakay
7
2.5k
Bringing the Mobile Web to the Cloud
arthurakay
2
570
Building Native Windows 8 Apps with Sencha
arthurakay
0
260
Creating Windows 8 Apps with Ext JS
arthurakay
1
290
Other Decks in Technology
See All in Technology
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
410
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
150
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
140
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
430
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
1
290
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
140
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
67k
Context Engineeringの取り組み
nutslove
0
280
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
190
Agile Leadership Summit Keynote 2026
m_seki
1
430
使いにくいの壁を突破する
sansantech
PRO
1
120
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
450
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.8k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
47
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
280
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
Mind Mapping
helmedeiros
PRO
0
77
Fireside Chat
paigeccino
41
3.8k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
RailsConf 2023
tenderlove
30
1.3k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
300
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