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
Introduce CasperJS
Search
Takayuki Matsubara
October 11, 2013
Programming
0
180
Introduce CasperJS
Introduce CasperJS. Easy way for browser testing.
M3 TechTalk #11 LT slide.
#m3dev
Takayuki Matsubara
October 11, 2013
Tweet
Share
More Decks by Takayuki Matsubara
See All by Takayuki Matsubara
Rails Web Development with AWS Lambda
ma2gedev
0
210
Coding Challenge Advent of Code 2019
ma2gedev
0
120
Developer Experience in GraphQL Schema-first Development
ma2gedev
0
2.1k
Dependency Inversion Principle in Keyboard Firmware
ma2gedev
0
420
OSSの歩き方 / Walking with OSS
ma2gedev
10
2.5k
GraphQL 開発で必要になったこと / What we needed for GraphQL development
ma2gedev
0
1k
キーボードをカスタムしてプログラミング環境を良くした話 / Improved programming environment with customizing keybords
ma2gedev
0
1.2k
Translating "Erlang in Anger" with Erlang & Elixir community members
ma2gedev
0
2.7k
Dive into Elixir v1.6 Code Formatter
ma2gedev
1
150
Other Decks in Programming
See All in Programming
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
10
1.3k
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.1k
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
受け取る人から提供する人になるということ
little_rubyist
0
230
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
100
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
4
640
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
最新TCAキャッチアップ
0si43
0
140
RubyLSPのマルチバイト文字対応
notfounds
0
120
Remix on Hono on Cloudflare Workers
yusukebe
1
280
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
860
Build your cross-platform service in a week with App Engine
jlugia
229
18k
The World Runs on Bad Software
bkeepers
PRO
65
11k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
It's Worth the Effort
3n
183
27k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Writing Fast Ruby
sferik
627
61k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Automating Front-end Workflow
addyosmani
1366
200k
Fireside Chat
paigeccino
34
3k
Transcript
$BTQFS+4 .5FDI5BML . *OD BTBLVTBSC 5XJUUFS!NBHF (JU)VCNBHFEFW #SFBEDSVNCMF
None
)3!.)
$BTQFS+4 6UJMJUZGPS 1IBOUPN+4
1IBOUPN+4 )FBEMFTT8FC,JU
6TFGVMGPS$* Prerequisites • PhantomJS 1.8.1 or greater. Installation instructions can
be found here • Python 2.6 or greater for casperjs in the bin/ directory IUUQEPDTDBTQFSKTPSHFOMBUFTUJOTUBMMBUJPOIUNM
JOTUBMMPO.BD CSFXJOTUBMMDBTQFSKT
TBNQMFKT var casper = require('casper').create(); casper.start('http://casperjs.org/', function() { this.echo(this.getTitle()); });
casper.thenOpen('http://phantomjs.org', function() { this.echo(this.getTitle()); }); casper.run(); IUUQEPDTDBTQFSKTPSHFOMBUFTURVJDLTUBSUIUNM
TBNQMFDP⒎FF casper = require('casper').create() casper.start "http://www.google.co.jp/", -> @fill "form[action='/search']", q:
"casperjs", true casper.then -> @fill @getTitle() casper.run()
SFTVMU $ casperjs test quickstart.coffee Test file: quickstart.coffee casperjs -
Google ݕࡧ
IFMQGVMSFTPVSDFT IUUQTTQFBLFSEFDLDPNOBPZB KBWBTDSJQUIVSPOUPFOEPLBJGBGBMTF[VPKJO
FOE