Class/Module Index [+]

Quicksearch

Selenium::WebDriver::ChildProcess::WindowsProcess

Public Instance Methods

kill() click to toggle source
# File common/src/rb/lib/selenium/webdriver/child_process.rb, line 140
def kill
  kill!
end
start() click to toggle source
# File common/src/rb/lib/selenium/webdriver/child_process.rb, line 119
def start
  require "win32/process" # adds a dependency on windows - perhaps we could just use FFI instead?
  @pid = Process.create(
    :app_name        => @args.join(" "),
    :inherit         => false # don't inherit open file handles
  ).process_id

  self
end
wait_nonblock(timeout) click to toggle source
# File common/src/rb/lib/selenium/webdriver/child_process.rb, line 129
def wait_nonblock(timeout)
  # win32-process doesn't support passing a second argument to waitpid2
  # See the README @ http://rubyforge.org/docman/view.php/85/707/README.html
  if defined?(Process::WNOHANG) && Process.method(:waitpid2).arity != 1
    return super
  end
  Timeout.timeout(timeout, Error::TimeOutError) { wait }
rescue Process::Error
  # no handle, great
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.