INNER CODE UNIT · Ruby
initialize
rubycdp/ferrum · lib/ferrum/browser.rb:151
def initialize(options = nil)
@options = Options.new(options)
@client = @process = @contexts = nil
start
end
#
# Creates a new page.
#
# @param [Boolean] new_context
# Whether to create a page in a new context or not.
#
# @param [Hash] proxy
# Whether to use proxy for a page. The page will be created in a new context if so.
#
# @return [Ferrum::Page]
# Created page.