2011年9月26日月曜日 capybaraをwebkitやseleniumとかで動かす場合の注意点と解決策 ■概要 capybaraとwebkit(たぶんselenium)を利用する際は、capybara側がブラウザとやりとりする為のスレッドを立ち上げる為 RSpec.configure do |config| ... config.use_tran... 続きを読む
rails, capybaracapybara 経由で selenium を使ってテストする時に、確認ダイアログを含む js をテストする方法のまとめ。 昔のやり方クリックする前に、confirm の内容を差し替える方法。 page.evaluate_script('window.confirm = function() { return true; }... 続きを読む
test, rails, capybaraRails のエンドツーエンドテスト用のデファクトスタンダードプラグイン Capybara の README 意訳です。いつもと比べて直訳成分多めです。テスト関連はどうにも日本語の情報が少なくて、覚えるのが大変ですね>< 概要Capybara は Rack ア... 続きを読む
Capybara-Webkit is a headless driver for Capybara that uses Qt-Webkit. Although it does not actually create a head (and therefore should be a great deal quicker than say running firefox via Xvfb) it still needs an X11 server running for acces... 続きを読む
どうも皆さんこんにちは、GW返上で頑張る babie でございます。Rails のインテグレーションテストで一般的となった Capybara ですが、JavaScript のテストには選択肢が色々あります。envjs, selenium, akephalos, celerity, culerity などなどです。迷いますね... 続きを読む
We recently blogged about our experiences and ongoing efforts to discover and improve tools for Javascript testing. In closing, we mentioned that we were fairly happy with Akephalos, but we didn’t believe the quest was over. Today, the quest... 続きを読む
NOTE: This is an update to a post I made a while back on using Capybara with RSpec 1 for integration testing. This post is specifically for using Capybara with RSpec 2! The setup information is different but the example is the same. RSpec 2 h... 続きを読む