Method: Ferrum::Browser#reset

Defined in:
lib/ferrum/browser.rb

#resetObject

Closes browser tabs opened by the ‘Browser` instance.

Examples:

# connect to a long-running Chrome process
browser = Ferrum::Browser.new(url: 'http://localhost:9222')

browser.go_to("https://github.com/")

# clean up, lest the tab stays there hanging forever
browser.reset

browser.quit


206
207
208
# File 'lib/ferrum/browser.rb', line 206

def reset
  contexts.reset
end