Sha256: 9c2bed6273dbae6b403b88d7dfc063f770bdc185fe3b0ed5b6c57fb7b08182f6
Contents?: true
Size: 368 Bytes
Versions: 14
Compression:
Stored size: 368 Bytes
Contents
module PageObject module PersistantBrowser @@browser = false def self.get_browser if !@@browser @@browser = Watir::Browser.new :firefox if ENV['DRIVER'] == 'WATIR' @@browser = Selenium::WebDriver.for :firefox if ENV['DRIVER'] == 'SELENIUM' end @@browser end def self.quit @@browser.quit end end end
Version data entries
14 entries across 14 versions & 1 rubygems