Sha256: 8513a24e7c2d1bd6c9e3e82477ce4d80a9c90e1b1c4ba9c033391db0d44365b7
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 Bytes
Contents
module Taza class Browser # Create a browser instance depending on configuration. Configuration should be read in via Taza::Settings.config. # # Example: # browser = Taza::Browser.create(Taza::Settings.config) # def self.create(params={}) self.send("create_#{params[:driver]}".to_sym,params) end def self.browser_class(params) self.send("#{params[:driver]}_#{params[:browser]}".to_sym) end private def self.create_watir(params) require 'watir' Watir::Browser.default = params[:browser].to_s Watir::Browser.new end def self.create_selenium(params) require 'selenium' Selenium::SeleniumDriver.new(params[:server_ip],params[:server_port],'*' + params[:browser].to_s,params[:timeout]) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
scudco-taza-0.8.1 | lib/taza/browser.rb |
taza-0.8.2 | lib/taza/browser.rb |