class LuckyFlow::Webless::Driver

Defined in:

lucky_flow/webless/driver.cr

Constructors

Instance Method Summary

Instance methods inherited from class LuckyFlow::Driver

accept_alert accept_alert, add_cookie(key : String, value : String) add_cookie, current_url : String current_url, dismiss_alert dismiss_alert, find_css(query : String) : Array(LuckyFlow::Element) find_css, find_xpath(query : String) : Array(LuckyFlow::Element) find_xpath, get_cookie(key : String) : String | Nil get_cookie, hover(element : LuckyFlow::Element) hover, html : String html, maximize_window maximize_window, reset reset, resize_window(width : Int64 | Nil, height : Int64 | Nil) resize_window, screenshot(path : String) screenshot, shutdown shutdown, stop stop, visit(url : String) visit, window_size : NamedTuple(width: Int64 | Nil, height: Int64 | Nil) window_size

Macros inherited from class LuckyFlow::Driver

unsupported unsupported

Constructor Detail

def self.new(handlers : Array(HTTP::Handler)) #

[View source]
def self.new(handler : HTTP::Handler) #

[View source]

Instance Method Detail

def accept_alert #

[View source]
def add_cookie(key : String, value : String) #

[View source]
def current_url : String #

[View source]
def dismiss_alert #

[View source]
def find_css(query : String) : Array(LuckyFlow::Element) #

[View source]
def find_xpath(query : String) : Array(LuckyFlow::Element) #

[View source]
def follow(method : String, url : String) #

[View source]
def get_cookie(key : String) : String | Nil #

[View source]
def hover(element : LuckyFlow::Element) #

[View source]
def html : String #

[View source]
def maximize_window #

[View source]
def reset : Nil #

[View source]
def resize_window(width : Int64 | Nil, height : Int64 | Nil) #

[View source]
def screenshot(path : String) #

[View source]
def shutdown : Nil #

[View source]
def stop #

[View source]
def submit(request : HTTP::Request) #

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

[View source]
def window_size : NamedTuple(width: Int64 | Nil, height: Int64 | Nil) #

[View source]