Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (27 sloc) 1.817 kb
5965f8a Jason Morrison Added README with a link to download Qt on OSX
jasonm authored
1 capybara-webkit
2 ===============
3
59c4eae Joe Ferris Updated license ane readme
jferris authored
4 A [capybara](https://github.com/jnicklas/capybara) driver that uses [WebKit](http://webkit.org) via [QtWebKit](http://doc.qt.nokia.com/4.7/qtwebkit.html).
5965f8a Jason Morrison Added README with a link to download Qt on OSX
jasonm authored
5
59c4eae Joe Ferris Updated license ane readme
jferris authored
6 Dependencies
7 ------------
5965f8a Jason Morrison Added README with a link to download Qt on OSX
jasonm authored
8
d7f491d Dan Croak improving the install instructions
croaky authored
9 capybara-webkit depends on a WebKit implementation from Qt, a cross-platform development toolkit. You'll need to download the Qt libraries to build and install the gem.
59c4eae Joe Ferris Updated license ane readme
jferris authored
10
d7f491d Dan Croak improving the install instructions
croaky authored
11 If you're on OS X, [download the non-debug Cocoa package](http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x). Note that installing Qt via homebrew takes more than an hour, so we don't recommend it.
59c4eae Joe Ferris Updated license ane readme
jferris authored
12
d7f491d Dan Croak improving the install instructions
croaky authored
13 If you're on Ubuntu, you can install the libqt4-dev package. For other Linux distributions, [download this package](http://qt.nokia.com/downloads/linux-x11-cpp).
657ee68 Joe Ferris Clarify installation notes
jferris authored
14
d7f491d Dan Croak improving the install instructions
croaky authored
15 CI
16 --
17
18 If you're like us, you'll be using capybara-webkit on CI.
657ee68 Joe Ferris Clarify installation notes
jferris authored
19
87a00ab Joe Ferris Added more readme notes on Qt and Xvfb
jferris authored
20 On Linux platforms, capybara-webkit requires an X server to run, although it doesn't create any visible windows. Xvfb works fine for this. You can setup Xvfb yourself and set a DISPLAY variable, or try out the [headless gem](https://github.com/leonid-shevtsov/headless).
f754e93 Joe Ferris Added Ubunutu instructions to the README
jferris authored
21
59c4eae Joe Ferris Updated license ane readme
jferris authored
22 Usage
23 -----
24
25 Add the capybara-webkit gem to your Gemfile:
26
27 gem "capybara-webkit"
28
29 Set your Capybara Javascript driver to webkit:
30
31 Capybara.javascript_driver = :webkit
32
33 Tag scenarios with @javascript to run them using a headless WebKit browser.
34
35 About
36 -----
37
38 The capybara WebKit driver was written by Joe Ferris, Tristan Dunn, and Jason Morrison from [thoughtbot, inc](http://thoughtbot.com/community).
39
64cf394 Joe Ferris Added a note about X servers and the thoughtbot logo
jferris authored
40 ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
41
59c4eae Joe Ferris Updated license ane readme
jferris authored
42 The names and logos for thoughtbot are trademarks of thoughtbot, inc.
43
44 License
45 -------
46
47 capybara-webkit is Copyright © 2011 thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.
5965f8a Jason Morrison Added README with a link to download Qt on OSX
jasonm authored
48
Something went wrong with that request. Please try again.