# File lib/selenium/webdriver/common/platform.rb, line 106 def assert_executable(path) unless File.file? path raise Error::WebDriverError, "not a file: #{path.inspect}" end unless File.executable? path raise Error::WebDriverError, "not executable: #{path.inspect}" end end