Class: Taza::Browser
Class Method Summary collapse
- .browser_class(params) ⇒ Object
-
.create(params = {}) ⇒ Object
Create a browser instance depending on configuration.
Class Method Details
.browser_class(params) ⇒ Object
13 14 15 |
# File 'lib/taza/browser.rb', line 13 def self.browser_class(params) self.send("#{params[:driver]}_#{params[:browser]}".to_sym) end |
.create(params = {}) ⇒ Object
9 10 11 |
# File 'lib/taza/browser.rb', line 9 def self.create(params={}) self.send("create_#{params[:driver]}".to_sym,params) end |