class LuckyFlow::Element
- LuckyFlow::Element
- Reference
- Object
Defined in:
lucky_flow/element.crConstructors
Instance Method Summary
-
#append(value : String)
Add text to the end of a field
- #attribute(*args, **options)
- #attribute(*args, **options, &)
-
#clear
Remove the text from a form field
- #click(*args, **options)
- #click(*args, **options, &)
- #displayed?(*args, **options)
- #displayed?(*args, **options, &)
-
#fill(value : String)
Set the text of a form field
- #inner_text : String?
- #selector : String
- #send_keys(*args, **options)
- #send_keys(*args, **options, &)
- #session(*args, **options)
- #session(*args, **options, &)
- #text(*args, **options)
- #text(*args, **options, &)
- #value
Constructor Detail
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!")