Sha256: 72485af2ca00f0be817f4a1422a513496716d206862a666bf9f92f5a56c85222
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
require "selenium" require "test/unit" require "selenium/server_manager" require "selenium/selenium_server" require "selenium/client/driver" module Statt class Client attr_reader :selenium_driver def initialize @selenium_driver = Selenium::Client::Driver.new \ :host => "localhost", :port => 4444, :browser => "*firefox", :url => "http://www.google.com", :timeout_in_second => 60 end def test @selenium_driver.start_new_browser_session @selenium_driver.open "/" @selenium_driver.type "q", "Selenium seleniumhq" @selenium_driver.click "btnG", :wait_for => :page_to_load @selenium_driver.close_current_browser_session end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
statt-0.0.1 | lib/statt/client.rb |