module Empiric
Constants
- VERSION
Attributes
browser[RW]
Public Class Methods
new(browser = nil)
click to toggle source
# File lib/empiric.rb, line 15 def initialize(browser = nil) @browser = Empiric.browser unless Empiric.browser.nil? @browser = browser if Empiric.browser.nil? Empiric.browser = browser if Empiric.browser.nil? end
Public Instance Methods
browser=(browser)
click to toggle source
# File lib/empiric.rb, line 26 def browser=(browser) @browser = browser end
dependencies()
click to toggle source
# File lib/empiric/version.rb, line 14 def dependencies puts Gem.loaded_specs.values.map { |x| "#{x.name} #{x.version}\n" } .uniq.sort.join(",").split(",") end
included(caller)
click to toggle source
# File lib/empiric.rb, line 11 def included(caller) caller.__send__ :include, Empiric::Interface::Page end
set_browser(app = :chrome, *args)
click to toggle source
# File lib/empiric.rb, line 21 def set_browser(app = :chrome, *args) @browser = Watir::Browser.new(app, *args) Empiric.browser = @browser end
version()
click to toggle source
# File lib/empiric/version.rb, line 6 def version """ Empiric v#{Empiric::VERSION} watir-webdriver: #{Gem.loaded_specs['watir-webdriver'].version} selenium-webdriver: #{Gem.loaded_specs['selenium-webdriver'].version} """ end