class Cromium::Page

Defined in:

cromium/page.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String, id : String) #

[View source]

Instance Method Detail

def active_requests : Int32 #

[View source]
def active_requests=(active_requests : Int32) #

[View source]
def callback_channel : Hash(Int32, Channel(JSON::Any)) #

[View source]
def callback_channel=(callback_channel : Hash(Int32, Channel(JSON::Any))) #

[View source]
def close #

[View source]
def done_callback_channel : Channel(Int32) #

[View source]
def done_callback_channel=(done_callback_channel : Channel(Int32)) #

[View source]
def frame : Frame #

[View source]
def frame=(frame : Frame) #

[View source]
def get_frame_id #

[View source]
def goto(url : String) #

[View source]
def html : String #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def navigate(url : String) #

[View source]
def navigate_type : NAVIGATE_TYPE #

[View source]
def navigate_type=(navigate_type : NAVIGATE_TYPE) #

[View source]
def on_html(&block : JSON::Any -> Nil) #

[View source]
def on_pdf(&block : JSON::Any -> Nil) #

[View source]
def on_screenshot(&block : JSON::Any -> Nil) #

[View source]
def pdf : String #

[View source]
def pdf(**params) : String #

[View source]
def pdf_to_file(filename : String) #

[View source]
def pdf_to_file(filename : String, **params) #

[View source]
def requested_callbacks : Int32 #

[View source]
def requested_callbacks=(requested_callbacks : Int32) #

[View source]
def requested_callbacks_mutex : Mutex #

[View source]
def requested_callbacks_mutex=(requested_callbacks_mutex : Mutex) #

[View source]
def screenshot : String #

[View source]
def screenshot(**params) : String #

[View source]
def screenshot_to_file(filename : String) #

[View source]
def screenshot_to_file(filename : String, **params) #

[View source]
def send_command(command : String) : JSON::Any #

[View source]
def send_command(command : String, **params) : JSON::Any #

[View source]
def set_content(content : String, wait_for : String = "networkIdle0") #

[View source]
def set_content(content : IO, wait_for : String = "networkIdle0") #

[View source]
def url : String #

[View source]
def url=(url : String) #

[View source]
def wait_for_function(function : String) : JSON::Any #

[View source]
def wait_for_page_load #

[View source]
def wait_for_page_load(&block) #

[View source]
def ws : HTTP::WebSocket #

[View source]
def ws=(ws : HTTP::WebSocket) #

[View source]