Sha256: 5d1e1b2ced36a4125bc17bb5a71221791f4f572ed94ec5cd167cb1aa8993fd0c

Contents?: true

Size: 870 Bytes

Versions: 8

Compression:

Stored size: 870 Bytes

Contents

require 'rubygems'
gem "rspec", "<2"
gem "selenium-client"
require "selenium/client"
require "selenium/rspec/spec_helper"
gem "testingbot"
require "testingbot"

describe "People" do
  attr_reader :selenium_driver
  alias :page :selenium_driver
  
  before(:all) do
        @selenium_driver = Selenium::Client::Driver.new \
            :host => "hub.testingbot.com",
            :port => 4444, 
            :browser => "firefox", 
            :url => "http://www.google.com", 
            :timeout_in_second => 60,
            :platform => "WINDOWS",
            :version => "10"
    end

    before(:each) do
      @selenium_driver.start_new_browser_session
    end

    append_after(:each) do 
      @selenium_driver.close_current_browser_session
    end

    it "can find the right title" do    
      page.open "/"
      page.title.should eql("Google")   
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
testingbot-0.1.7 examples/test_rspec1.rb
testingbot-0.1.6 examples/test_rspec1.rb
testingbot-0.1.5 examples/test_rspec1.rb
testingbot-0.1.4 examples/test_rspec1.rb
testingbot-0.1.3 examples/test_rspec1.rb
testingbot-0.1.2 examples/test_rspec1.rb
testingbot-0.1.1 examples/test_rspec1.rb
testingbot-0.1.0 examples/test_rspec1.rb