INNER CODE UNIT · Ruby
restart
rubycdp/ferrum · lib/ferrum/browser.rb:232
def restart
quit
start
end
#
# Terminates the browser process and closes the client connection.
#
# @param [Boolean] wait
# Whether to block until the process is confirmed dead and its user
# data directory removed (the default), or return immediately and run
# that cleanup on a background thread instead. See {Process#stop}.
#
# @return [Thread, nil]
# The background cleanup thread when `wait: false`, `nil` otherwise.
#
def quit(wait: true)
return unless @client