Sha256: 4983131ded7981b7ceec77017e5b3e5fc0866a9fb8f2921f8fefc83792ac63f5
Contents?: true
Size: 805 Bytes
Versions: 7
Compression:
Stored size: 805 Bytes
Contents
module Webdrone class Browser def conf @conf ||= Conf.new self end end class Conf attr_accessor :a0, :timeout, :outdir, :error, :developer def initialize(a0) @a0 = a0 @outdir = "." @error = :raise_report end def timeout=(val) @timeout = val @a0.driver.manage.timeouts.implicit_wait = val rescue => exception Webdrone.report_error(@a0, exception) end def outdir=(val) @outdir = val FileUtils.mkdir_p val rescue => exception Webdrone.report_error(@a0, exception) end def error=(val) raise "Invalid value '#{val}' for error" if not [:raise_report, :raise, :ignore].include? val @error = val rescue => exception Webdrone.report_error(@a0, exception) end end end
Version data entries
7 entries across 7 versions & 1 rubygems