class

LuckyFlow::Webless::Element

Inherits LuckyFlow::Element < Reference < Object

Constants

VISIBILITY_XPATH = "boolean(./ancestor-or-self::*[(((./@style[(contains(., 'display:none') or contains(., 'display: none'))] or ./@hidden) or ((name(.) = 'script') or (name(.) = 'head'))) or (not(./self::summary) and ./parent::details[not(./@open)]))])"

Constructors

new(driver, raw_selector, inner_element : HTML5::Node)
Source

Instance methods

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!")
Source
attribute(name : String) : String | Nil
Source
check
Source
checkbox?
Source
checked?
Source
clear
Source
click
Source
displayed?
Source
fill(value : String)

Set the text of a form field

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

field.fill("Lucky is great!")
Source
midpoint
Source
property(name : String) : String | Nil
Source
radio?
Source
remove_attribute(name : String, element : HTML5::Node = @inner_element)
Source
select_option(value : String)
Source
select_options(values : Array(String))
Source
selected?
Source
send_keys(keys : Array(String | Symbol))
Source
set_checkbox(value : Bool)
Source
set_radio
Source
tag_name
Source
text
Source
value
Source