lib/aranha/selenium/defaults.rb in aranha-selenium-0.6.1 vs lib/aranha/selenium/defaults.rb in aranha-selenium-0.7.0
- old
+ new
@@ -10,12 +10,13 @@
include ::Singleton
DEFAULT_DOWNLOADS_DIR = ::File.join(::Dir.tmpdir, 'aranha_downloads_dir')
DEFAULT_ACCEPT_INSECURE_CERTS = false
DEFAULT_HEADLESS = false
+ DEFAULT_PROFILE_DIR = nil
DEFAULT_USER_AGENT = nil
- %w[accept_insecure_certs downloads_dir headless user_agent].each do |key|
+ %w[accept_insecure_certs downloads_dir headless profile_dir user_agent].each do |key|
define_method(key) { send("#{key}_option").value }
define_method("#{key}=") { |user_value| send("#{key}_option").user_value = user_value }
define_method("#{key}_option") do
options[key] ||= ::Aranha::Selenium::Defaults::Option.new(self, key)
end