8000 GitHub - shogo-hta/capy: Capybara Script Runner · GitHub
[go: up one dir, main page]

Skip to content
shogo-htaPublic
forked from jugyo/capy

About

Capybara Script Runner

Resources

Stars

1 star

Watchers

1 watching

Forks

 
 

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capy

The capy command to run the script written in Capybara DSL.

Installation

$ gem install capy

Usage

Capy Shell

$ capy

Running Script

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

JavaScript Mode

# example.js

location 'http://www.wikipedia.org/'
...

run capy with '-j' option

$ capy -j example.js

See also the examples.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

TODO

  • write spec

About

Capybara Script Runner

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0