Sha256: cb0417880710741ba32407a42f98163776c39feb22c5652bf187f3de6a9318d7

Contents?: true

Size: 649 Bytes

Versions: 8

Compression:

Stored size: 649 Bytes

Contents

require 'rubygems'
require 'test/unit'
require "selenium/client"
require 'testingbot'

class ExampleTest < TestingBot::TestCase
  attr_reader :browser

  def setup
    @browser = Selenium::Client::Driver.new \
        :host => "hub.testingbot.com",
        :port => 4444, 
        :browser => "firefox", 
        :platform => "WINDOWS",
        :version => "10",
        :url => "http://www.google.com", 
        :timeout_in_second => 60
      
    browser.start_new_browser_session
  end

  def teardown
    browser.close_current_browser_session
  end

  def test_page_search
    browser.open "/"
    assert_equal "Google", browser.title
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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