lib/gridium.rb in gridium-0.1.4 vs lib/gridium.rb in gridium-0.1.5
- old
+ new
@@ -17,14 +17,15 @@
self.config ||= Config.new
yield config
end
class Config
- attr_accessor :report_dir, :target_environment, :browser, :url, :page_load_timeout, :element_timeout, :visible_elements_only, :log_level
+ attr_accessor :report_dir, :browser_source, :target_environment, :browser, :url, :page_load_timeout, :element_timeout, :visible_elements_only, :log_level
attr_accessor :highlight_verifications, :highlight_duration, :screenshot_on_failure
def initialize
@report_dir = Dir.home
+ @browser_source = :local #if browser source is set to remote, target environment needs to be set properly
@target_environment = "localhost"
@browser = :firefox
@url = "about:blank"
@page_load_timeout = 15
@element_timeout = 15 #This needs to be changed to only look for an element after a page is done loading