Sha256: 5eb5b28a1b81da7a01307812a2a1485f63da56077b617b19fb3df465f8dbed0d
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
require "empiric/version" require "empiric/interface" require "watir-webdriver" module Empiric module_function attr_accessor :browser def included(caller) caller.__send__ :include, Empiric::Interface::Page end 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 def set_browser(app = :chrome, *args) @browser = Watir::Browser.new(app, *args) Empiric.browser = @browser end def browser=(browser) @browser = browser end def browser @browser end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
empiric-0.1.0 | lib/empiric.rb |