Sha256: 16ff80fa54d50e5de0535e371f779ac6f7cedf4c82684a0e7642970e2f9bb7ef
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
#!/usr/bin/env ruby # # Sample Ruby script using the Selenium client API # require "rubygems" gem "selenium-client", ">=1.2.18" require "selenium/client" begin @browser = Selenium::Client::Driver.new \ :host => "localhost", :port => 4444, :browser => "*firefox", :url => "http://www.google.com", :timeout_in_second => 60 @browser.start_new_browser_session @browser.open "/" @browser.type "q", "Selenium seleniumhq.org" @browser.click "btnG", :wait_for => :page puts @browser.text?("seleniumhq.org") ensure @browser.close_current_browser_session end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
warnold-selenium-client-1.2.19 | examples/script/google.rb |
selenium-client-1.2.18 | examples/script/google.rb |