Skip to content

adamphillips/the_dude-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TheDude-Web

Adds basic web integration to TheDude.

This consists of including some useful web libraries including Capybara, net/http and Nokogiri so that they can be used in Dude commands.

Capybara

TheDude is configured to use Capybara This means that you can use Capybara DSL shortcuts in your dude commands

command 'a web script' do
  Capybara.app_host = 'http://www.google.com'
  visit '/'
end

By default this will use the selenium driver however other Capybara drivers can be configured as per the instructions in the Capybara readme

Installing

Simply install the gem using

$ gem install the_dude-web

The dude should detect the plugin and initialize it automatically. In order to check that the plugin is installed you can type

$ dude list plugins

About

Powers up The Dude with useful web scripting commands

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages