Sha256: c4ac67e9b87bcf808faa37855397f8423aeb8c05c4a783fd8c105215f3ade471
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 Bytes
Contents
require "test/unit" require "rubygems" require "selenium/client" class Example < Test::Unit::TestCase def setup @verification_errors = [] @selenium = Selenium::Client::Driver.new \ :host => "localhost", :port => 4444, :browser => "*chrome", :url => "http://www.google.com", :timeout_in_second => 60 @selenium.start_new_browser_session @selenium.set_speed('2000') end def teardown @selenium.close_current_browser_session assert_equal [], @verification_errors end def test_eg @selenium.open "/" @selenium.type "id=lst-ib", "selenium" @selenium.click "name=btnG" @selenium.click "link=Selenium - Web Browser Automation" @selenium.wait_for_page_to_load "30000" assert_equal "Selenium - Web Browser Automation", @selenium.get_title @selenium.click "link=Documentation" @selenium.wait_for_page_to_load "30000" @selenium.click "link=Selenium 1 (Selenium RC)" @selenium.wait_for_page_to_load "30000" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selenium-rake-0.0.3 | lib/generators/example_selenium.rb |