-‐> test.assertHttpStatus 200 test.assertTitleMatch /^amazlet/, "タイトル文字列が期待通り" test.assertExists 'form', "メインフォームがある" @fill 'form', keyword: "chef solo" @click 'form input[type="submit"]' casper.then -‐> test.assertHttpStatus 200 test.assertExists 'p.title', '検索結果が一つ以上ある' @click 'a.minibutton' casper.then -‐> test.assertHttpStatus 200 result = @evaluate -‐> document.getElementById('standard').value test.assertMatch result, /^<div/, 'HTMLタグが取得できた' casper.run -‐> do test.done