abstract class LuckyFlow::Element

Direct Known Subclasses

Defined in:

lucky_flow/element.cr

Macro Summary

Instance Method Summary

Macro Detail

macro unsupported #

[View source]

Instance Method Detail

def append(value : String) #

Add text to the end of a field

field = el("input[name='comment']")
field.fill("Lucky is:")

field.append(" So much fun!")

[View source]
abstract def attribute(name : String) : String | Nil #

[View source]
def attribute(name : Symbol) : String | Nil #

[View source]
abstract def checked? : Bool #

[View source]
abstract def clear #

[View source]
abstract def click #

[View source]
abstract def displayed? : Bool #

[View source]
def driver : LuckyFlow::Driver #

[View source]
def fill(value : String) #

Set the text of a form field

field = el("input[name='comment']")

field.fill("Lucky is great!")

[View source]
def fill(value : Time) #

[View source]
def hover #

[View source]
abstract def midpoint : NamedTuple(x: Int32, y: Int32) | Nil #

[View source]
abstract def property(name : String) : String | Nil #

[View source]
def property(name : Symbol) : String | Nil #

[View source]
def raw_selector : String #

[View source]
abstract def select_option(value : String) #

[View source]
abstract def select_options(values : Array(String)) #

[View source]
abstract def selected? : Bool #

[View source]
def selector : String #

[View source]
abstract def send_keys(keys : Array(String | Symbol)) #

[View source]
def send_keys(key : String) #

[View source]
abstract def tag_name : String #

[View source]
abstract def text : String #

[View source]
def value #

[View source]