Sha256: 1aa669f75b5504bd5ca44eab05b07e5e030970e69ad87d3caaa99be92027358e

Contents?: true

Size: 694 Bytes

Versions: 8

Compression:

Stored size: 694 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/features_spec_helper')

describe 'Google Search' do
  include_context "AcceptanceTest"

  before :all do
    selenium_config_file = "spec/features/selenium.yml"
    selenium_config_name = "test"

    acceptance_test.load_selenium_config selenium_config_file, selenium_config_name
  end

  before do
    puts "Using driver: #{Capybara.current_driver}."
    puts "Default wait time: #{Capybara.default_wait_time}."
  end

  it "uses selenium driver", driver: :selenium_remote do
    visit('/')

    fill_in "q", :with => "Capybara"

    find("#gbqfbw button").click

    all(:xpath, "//li[@class='g']/h3/a").each { |a| puts a[:href] }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acceptance_test-1.1.5 spec/features/with_selenium_conf_spec.rb
acceptance_test-1.1.4 spec/features/with_selenium_conf_spec.rb
acceptance_test-1.1.3 spec/features/with_selenium_conf_spec.rb
acceptance_test-1.1.2 spec/features/with_selenium_conf_spec.rb
acceptance_test-1.1.1 spec/features/with_selenium_conf_spec.rb
acceptance_test-1.1.0 spec/features/with_selenium_conf_spec.rb
acceptance_test-1.0.7 spec/features/with_selenium_conf_spec.rb
acceptance_test-1.0.6 spec/features/with_selenium_conf_spec.rb