class LuckyFlow::Element

Defined in:

lucky_flow/element.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(raw_selector : String, text inner_text : String | Nil = nil) #

[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]
def attribute(*args, **options) #

[View source]
def attribute(*args, **options, &) #

[View source]
def clear #

Remove the text from a form field


[View source]
def click(*args, **options) #

[View source]
def click(*args, **options, &) #

[View source]
def displayed?(*args, **options) #

[View source]
def displayed?(*args, **options, &) #

[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 inner_text : String? #

[View source]
def selector : String #

[View source]
def send_keys(*args, **options) #

[View source]
def send_keys(*args, **options, &) #

[View source]
def session(*args, **options) #

[View source]
def session(*args, **options, &) #

[View source]
def text(*args, **options) #

[View source]
def text(*args, **options, &) #

[View source]
def value #

[View source]