Skip to content

Instantly share code, notes, and snippets.

@biske
Created September 30, 2013 10:45
Show Gist options
  • Save biske/6762085 to your computer and use it in GitHub Desktop.
Save biske/6762085 to your computer and use it in GitHub Desktop.
require 'capybara/dsl'
require 'selenium-webdriver'
Capybara.run_server = false
Capybara.default_driver = :selenium
class Robot
include Capybara::DSL
def go
visit "http://www.example.com"
puts find("some_id").text
end
end
r = Robot.new
r.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment