Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 84 lines (47 sloc) 2.239 kB
5965f8a @jasonm Added README with a link to download Qt on OSX
jasonm authored
1 capybara-webkit
2 ===============
3
59c4eae @jferris 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 @jasonm Added README with a link to download Qt on OSX
jasonm authored
5
93f2272 @croaky [#97] adding Qt install instructions for Fedora
croaky authored
6 Dependent on Qt
7 ---------------
5965f8a @jasonm Added README with a link to download Qt on OSX
jasonm authored
8
578e5c7 @gabebw Spruce up the README
gabebw authored
9 capybara-webkit depends on a WebKit implementation from Qt, a cross-platform
10 development toolkit. You'll need to download the Qt libraries to build and
11 install the gem.
59c4eae @jferris Updated license ane readme
jferris authored
12
47b8c86 @plentz splitting OS X instructions in Lion and pre-Lion.
plentz authored
13 OS X Lion 10.7:
59c4eae @jferris Updated license ane readme
jferris authored
14
578e5c7 @gabebw Spruce up the README
gabebw authored
15 Install Qt via [homebrew](http://mxcl.github.com/homebrew/) (NOTE: can take more than an hour) using:
525b8b2 @plentz adding homebrew instructions
plentz authored
16
17 brew install qt --build-from-source
93f2272 @croaky [#97] adding Qt install instructions for Fedora
croaky authored
18
47b8c86 @plentz splitting OS X instructions in Lion and pre-Lion.
plentz authored
19 OS X < 10.7:
20
578e5c7 @gabebw Spruce up the README
gabebw authored
21 Download the [non-debug Cocoa package](http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x) (the smaller of the two downloads).
93f2272 @croaky [#97] adding Qt install instructions for Fedora
croaky authored
22
23 Ubuntu:
24
25 apt-get install libqt4-dev
26
27 Fedora:
28
29 yum install qt-webkit-devel
30
9b53e01 @denysonique Gentoo Linux qt-webkit install instruction
denysonique authored
31 Gentoo Linux:
32
8850f2d @denysonique Edited README.md via GitHub
denysonique authored
33 emerge x11-libs/qt-webkit
9b53e01 @denysonique Gentoo Linux qt-webkit install instruction
denysonique authored
34
93f2272 @croaky [#97] adding Qt install instructions for Fedora
croaky authored
35 Other Linux distributions:
36
37 [Download this package](http://qt.nokia.com/downloads/linux-x11-cpp).
657ee68 @jferris Clarify installation notes
jferris authored
38
d7f491d @croaky improving the install instructions
croaky authored
39 CI
40 --
41
42 If you're like us, you'll be using capybara-webkit on CI.
657ee68 @jferris Clarify installation notes
jferris authored
43
87a00ab @jferris Added more readme notes on Qt and Xvfb
jferris authored
44 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 @jferris Added Ubunutu instructions to the README
jferris authored
45
59c4eae @jferris Updated license ane readme
jferris authored
46 Usage
47 -----
48
49 Add the capybara-webkit gem to your Gemfile:
50
51 gem "capybara-webkit"
52
53 Set your Capybara Javascript driver to webkit:
54
55 Capybara.javascript_driver = :webkit
56
57 Tag scenarios with @javascript to run them using a headless WebKit browser.
58
3e9527a @mike-burns a contributing guide
mike-burns authored
59 Contributing
60 ------------
61
62 See the CONTRIBUTING document.
63
59c4eae @jferris Updated license ane readme
jferris authored
64 About
65 -----
66
67 The capybara WebKit driver was written by Joe Ferris, Tristan Dunn, and Jason Morrison from [thoughtbot, inc](http://thoughtbot.com/community).
68
37b3d24 @nicholaides Documenting that some code was borrowed from Phantom.js
nicholaides authored
69 Code for rendering the current webpage to a PNG is borrowed from Phantom.js' implementation.
70
64cf394 @jferris Added a note about X servers and the thoughtbot logo
jferris authored
71 ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
72
59c4eae @jferris Updated license ane readme
jferris authored
73 The names and logos for thoughtbot are trademarks of thoughtbot, inc.
74
644d85d @leehambley Change Capybara-webkit to listen on poty 8200, simple patch removes c…
leehambley authored
75 Notes
76 -----
77
578e5c7 @gabebw Spruce up the README
gabebw authored
78 capybara-webkit will listen on port 8200. This may conflict with other services.
644d85d @leehambley Change Capybara-webkit to listen on poty 8200, simple patch removes c…
leehambley authored
79
59c4eae @jferris Updated license ane readme
jferris authored
80 License
81 -------
82
578e5c7 @gabebw Spruce up the README
gabebw authored
83 capybara-webkit is Copyright (c) 2011 thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.
Something went wrong with that request. Please try again.