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
Arthur Kay
June 01, 2012
Technology
240
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
180
Debugging your Apps with Google Chrome and Sencha
arthurakay
1
320
Announcing Ext JS 5
arthurakay
0
170
Conquering the Command Line
arthurakay
0
370
The Future of Enterprise App Development
arthurakay
0
160
Best Practices for Enterprise JavaScript Applications
arthurakay
7
2.6k
Bringing the Mobile Web to the Cloud
arthurakay
2
610
Building Native Windows 8 Apps with Sencha
arthurakay
0
280
Creating Windows 8 Apps with Ext JS
arthurakay
1
300
Other Decks in Technology
See All in Technology
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5k
DDDのエッセンスを取り入れたAIでの開発
ak2ie
0
180
トークンマネジメントでAIにとって働きやすい環境を実現する
hikaruegashira
0
130
LanceDB入門
mocobeta
9
640
도구에서 동료까지: 10년차 AI 스타트업의 AI 적응기
inureyes
PRO
1
300
LLM Internals: 언어 모델의 계보와 알고리즘 진화 (2023~2026)
inureyes
PRO
1
800
会社紹介資料 / Sansan Company Profile
sansan33
PRO
24
430k
Digitization部 紹介資料
sansan33
PRO
2
7.7k
AI・HPC開発を支えるGPU環境の新しい選択肢 液冷GPUシステム「AquSys」の取り組み
gpuunite_official
0
160
SmartHR Engineering Team Deck
smarthr
1
3.1k
[potatotips #96] Give Your AI Agent the Flutter Playbook
korodroid
0
120
属人化を叩き割れ!「制作加速」と「安定化」の矛盾を打破する:8年目プロダクトが辿り着いた「ミスが起こり得ない」アセット制作フローの全貌
gree_tech
PRO
0
120
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
Building the Perfect Custom Keyboard
takai
2
840
Are puppies a ranking factor?
jonoalderson
2
3.8k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
380
The World Runs on Bad Software
bkeepers
PRO
72
12k
Abbi's Birthday
coloredviolet
3
9.4k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
420
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
30 Presentation Tips
portentint
PRO
1
370
The browser strikes back
jonoalderson
0
1.5k
Code Review Best Practice
trishagee
74
20k
Skip the Path - Find Your Career Trail
mkilby
1
190
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