Sha256: fc3f89cc3397e7e660b0c23a22bfdf15175e75b54615ad19834e5e3d5554d366

Contents?: true

Size: 1.58 KB

Versions: 15

Compression:

Stored size: 1.58 KB

Contents

require 'gridium/version'
require 'log'
require 'spec_data'
require 'driver'
require 'driver_extensions'
require 'element'
require 'element_extensions'
require 'element_verification'
require 'page'
require 's3'
require 'testrail'

module Gridium
  class << self
    attr_accessor :config
  end

  def self.configure
    self.config ||= Config.new
    yield config
  end

  class Config
    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, :screenshots_to_s3, :project_name_for_s3, :subdirectory_name_for_s3
    attr_accessor :testrail, :selenium_log_level

    def initialize
      @report_dir = Dir.home
      @browser_source = :local  #if browser source is set to remote, target environment needs to be set properly
      @selenium_log_level = 'OFF' #OFF, SEVERE, WARNING, INFO, DEBUG, ALL https://github.com/SeleniumHQ/selenium/wiki/Logging
      @target_environment = "localhost"
      @browser = :chrome
      @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
      @visible_elements_only = true
      @log_level = :fatal
      @highlight_verifications = false
      @highlight_duration = 0.100
      @screenshot_on_failure = false
      @screenshots_to_s3 = false
      @project_name_for_s3 = 'gridium'
      @subdirectory_name_for_s3 = '' #rely on GridiumS3 default
      @testrail = false
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gridium-1.1.24 lib/gridium.rb
gridium-1.1.23 lib/gridium.rb
gridium-1.1.22 lib/gridium.rb
gridium-1.1.21 lib/gridium.rb
gridium-1.1.20 lib/gridium.rb
gridium-1.1.17 lib/gridium.rb
gridium-1.1.15 lib/gridium.rb
gridium-1.1.14 lib/gridium.rb
gridium-1.1.13 lib/gridium.rb
gridium-1.1.11 lib/gridium.rb
gridium-1.1.10 lib/gridium.rb
gridium-1.1.9 lib/gridium.rb
gridium-1.1.8 lib/gridium.rb
gridium-1.1.7 lib/gridium.rb
gridium-1.1.6 lib/gridium.rb