Module: QAT::Web::Browser::Profile
Overview
Module to provide browsers specific profile.
Defined Under Namespace
Classes: HandlerNotImplemented, InvalidAddonError
Constant Summary collapse
- ADDONS =
{ firefox: { har_exporter: 'harexporttrigger-0.5.0-beta.10.xpi' } }
Instance Method Summary collapse
Instance Method Details
#create_profile(driver, browser, properties, addons) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/qat/web/browser/profile.rb', line 16 def create_profile (driver, browser, properties, addons) return nil unless properties && properties.any? begin method("#{driver}_#{browser}_profile".to_sym).call(properties, addons) rescue NoMethodError => exception if exception..match(/.*_.*_profile/) raise(HandlerNotImplemented, "A profile handler for driver '#{driver.capitalize}' and/or '#{browser.capitalize}' does not exist at this moment!") else raise end end end |