The capy command to run the script written in Capybara DSL.
$ gem install capy
$ capy
Write script
# example.capy
visit 'http://www.wikipedia.org/'
fill_in 'search', :with => 'ruby'
click_on ' → '
stop
and
$ capy example.capy
Change the browser:
$ capy -b firefox example.capy
# example.js
location 'http://www.wikipedia.org/'
...
run capy with '-j' option
$ capy -j example.js
See also the examples.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
- write spec