Sha256: 0aef45a17096b6a57c8903cb3e57da0dd0c5c5864aa1a6b524e91473490988e9
Contents?: true
Size: 858 Bytes
Versions: 3
Compression:
Stored size: 858 Bytes
Contents
require "rubygems" gem "selenium-client" require "selenium/client" gem 'test-unit' require 'test/unit' gem "testingbot" 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://testingbot.com", :timeout_in_second => 60 browser.extra = "First test" # some custom data you can pass with your tests browser.start_new_browser_session(:captureNetworkTraffic => true) end def teardown browser.close_current_browser_session end def test_page_search browser.open "/" # assert_equal "Google", browser.title p browser.browser_network_traffic end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
testingbot-0.0.9 | examples/test_unit.rb |
testingbot-0.0.8 | examples/test_unit.rb |
testingbot-0.0.7 | examples/test_unit.rb |