abstract class LuckyFlow::Element
- LuckyFlow::Element
- Reference
- Object
Direct Known Subclasses
Defined in:
lucky_flow/element.crInstance Method Summary
-
#append(value : String)
Add text to the end of a field
- #attribute(name : String) : String | Nil
- #attribute(name : Symbol) : String | Nil
- #checked? : Bool
- #clear
- #click
- #displayed? : Bool
- #driver : LuckyFlow::Driver
-
#fill(value : String)
Set the text of a form field
- #fill(value : Time)
- #hover
- #midpoint : NamedTuple(x: Int32, y: Int32) | Nil
- #property(name : String) : String | Nil
- #property(name : Symbol) : String | Nil
- #raw_selector : String
- #select_option(value : String)
- #select_options(values : Array(String))
- #selected? : Bool
- #selector : String
- #send_keys(keys : Array(String | Symbol))
- #send_keys(key : String)
- #tag_name : String
- #text : String
- #value
Macro Summary
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!")
def fill(value : String)
#
Set the text of a form field
field = el("input[name='comment']")
field.fill("Lucky is great!")