def self.
new(url : String, id : String)
#
def
active_requests=(active_requests : Int32)
#
def
callback_channel : Hash(Int32, Channel(JSON::Any))
#
def
callback_channel=(callback_channel : Hash(Int32, Channel(JSON::Any)))
#
def
done_callback_channel=(done_callback_channel : Channel(Int32))
#
def
on_html(&block : JSON::Any -> Nil)
#
def
on_pdf(&block : JSON::Any -> Nil)
#
def
on_screenshot(&block : JSON::Any -> Nil)
#
def
pdf_to_file(filename : String, **params)
#
def
requested_callbacks=(requested_callbacks : Int32)
#
def
requested_callbacks_mutex=(requested_callbacks_mutex : Mutex)
#
def
screenshot_to_file(filename : String, **params)
#
def
send_command(command : String) : JSON::Any
#
def
send_command(command : String, **params) : JSON::Any
#
def
set_content(content : String, wait_for : String =
"networkIdle0")
#
def
set_content(content : IO, wait_for : String =
"networkIdle0")
#
def
wait_for_function(function : String) : JSON::Any
#