Sha256: 26a715bd45dedde7247278a16aaa0bd4de42aeccbc40a1d6954670542fbf288f
Contents?: true
Size: 517 Bytes
Versions: 23
Compression:
Stored size: 517 Bytes
Contents
require 'selenium-webdriver' module LearnTest module Dependencies class Firefox < LearnTest::Dependency def missing? begin Selenium::WebDriver::Firefox::Binary.path false rescue Selenium::WebDriver::Error::WebDriverError true end end def install die('Please download and install Firefox: https://www.mozilla.org/en-US/firefox'.red) end def die(message) puts message exit end end end end
Version data entries
23 entries across 23 versions & 1 rubygems