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

Version Path
learn-test-2.7.0 lib/learn_test/dependencies/firefox.rb
learn-test-2.6.1 lib/learn_test/dependencies/firefox.rb
learn-test-2.6.0 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.6 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.5 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.4 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.3 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.2 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.1 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.0 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.0.rc2 lib/learn_test/dependencies/firefox.rb
learn-test-2.5.0.rc1 lib/learn_test/dependencies/firefox.rb
learn-test-2.4.2 lib/learn_test/dependencies/firefox.rb
learn-test-2.4.1 lib/learn_test/dependencies/firefox.rb
learn-test-2.4.0 lib/learn_test/dependencies/firefox.rb
learn-test-2.3.3 lib/learn_test/dependencies/firefox.rb
learn-test-2.3.2 lib/learn_test/dependencies/firefox.rb
learn-test-2.3.1 lib/learn_test/dependencies/firefox.rb
learn-test-2.3.0 lib/learn_test/dependencies/firefox.rb
learn-test-2.2.2 lib/learn_test/dependencies/firefox.rb