Parent

Class/Module Index [+]

Quicksearch

Selenium::WebDriver::Firefox::Binary

@api private

Public Instance Methods

quit() click to toggle source
# File lib/selenium/webdriver/firefox/binary.rb, line 38
def quit
  return unless @process
  @process.poll_for_exit QUIT_TIMEOUT
rescue ChildProcess::TimeoutError
  # ok, force quit
  @process.stop QUIT_TIMEOUT
end
start_with(profile, profile_path, *args) click to toggle source
# File lib/selenium/webdriver/firefox/binary.rb, line 17
def start_with(profile, profile_path, *args)
  if Platform.cygwin?
    profile_path = Platform.cygwin_path(profile_path, :windows => true)
  elsif Platform.windows?
    profile_path = profile_path.gsub("/", "\\")
  end

  ENV['XRE_CONSOLE_LOG']           = profile.log_file if profile.log_file
  ENV['XRE_PROFILE_PATH']          = profile_path
  ENV['MOZ_NO_REMOTE']             = '1' # able to launch multiple instances
  ENV['MOZ_CRASHREPORTER_DISABLE'] = '1' # disable breakpad
  ENV['NO_EM_RESTART']             = '1' # prevent the binary from detaching from the console

  if Platform.linux? && (profile.native_events? || profile.load_no_focus_lib?)
    modify_link_library_path profile_path
  end

  execute(*args)
  cope_with_mac_strangeness(args) if Platform.mac?
end
wait() click to toggle source
# File lib/selenium/webdriver/firefox/binary.rb, line 46
def wait
  @process.poll_for_exit(WAIT_TIMEOUT) if @process
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.