class LuckyFlow::Selenium::Element

Defined in:

lucky_flow/selenium/element.cr

Constructors

Instance Method Summary

Instance methods inherited from class LuckyFlow::Element

append(value : String) append, attribute(name : String) : String | Nil
attribute(name : Symbol) : String | Nil
attribute
, checked? : Bool checked?, clear clear, click click, displayed? : Bool displayed?, driver : LuckyFlow::Driver driver, fill(value : String)
fill(value : Time)
fill
, hover hover, midpoint : NamedTuple(x: Int32, y: Int32) | Nil midpoint, property(name : String) : String | Nil
property(name : Symbol) : String | Nil
property
, raw_selector : String raw_selector, select_option(value : String) select_option, select_options(values : Array(String)) select_options, selected? : Bool selected?, selector : String selector, send_keys(keys : Array(String | Symbol))
send_keys(key : String)
send_keys
, tag_name : String tag_name, text : String text, value value

Macros inherited from class LuckyFlow::Element

unsupported unsupported

Constructor Detail

def self.new(driver, raw_selector, inner_element : ::Selenium::Element) #

[View source]

Instance Method Detail

def attribute(name : String) : String | Nil #

[View source]
def checked? : Bool #

[View source]
def clear #

[View source]
def click #

[View source]
def displayed? : Bool #

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

To set the value of date inputs correctly you must put the year last but it still submits the form with the date first ...any questions?


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

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

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

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

[View source]
def selected? : Bool #

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

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

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

[View source]
def tag_name : String #

[View source]
def text : String #

[View source]