Method: Selenium::WebDriver::Platform.assert_executable

Defined in:
lib/selenium/webdriver/common/platform.rb

.assert_executable(path) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

[View source]

106
107
108
109
110
111
112
113
114
# 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