Sha256: 2fcc0057a100978f08d8e6a5ba62c04d1845cc3d7e138a15b019bcf47da3d678
Contents?: true
Size: 814 Bytes
Versions: 2
Compression:
Stored size: 814 Bytes
Contents
require 'grid' require 'test/unit' require 'grid/extensions/capybara' #require 'capybara' #require 'capybara/dsl' #require 'selenium-webdriver' #module Capybara #module Grid #autoload :Node, 'lib/grid/extensions/capybara/node.rb' #autoload :Driver, 'lib/grid/extensions/capybara/driver.rb' #end #end Capybara.register_driver :grid do |app| options = {} options[:controller_uri] = 'druby://10.0.1.3:11235' options[:loglevel] = Logger::DEBUG Capybara::Grid::Driver.new(app, options) end class HelloWorldTest < Test::Unit::TestCase include Capybara Capybara.app_host = 'http://www.google.com' Capybara.default_driver = :grid Capybara.run_server = false def test_google visit '/' fill_in 'q', :with => 'gridinit' assert page.has_content?('results') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grid-0.4.3 | examples/capybara/testunit/example_test.rb |
grid-0.4.2 | examples/capybara/testunit/example_test.rb |