LuckyFlow
Inherits LuckyActionLuckyFlowHelpers < AvramLuckyFlowHelpers < AuthenticLuckyFlowHelpers < Habitat::SettingsHelpers < Habitat::TempConfig < LuckyFlow::Expectations < Reference < Object
require "lucky_flow/ext/lucky"
Constants
HABITAT_SETTINGS = [{decl: screenshot_directory : String = "./tmp/screenshots", example: nil, validation: nil}, {decl: base_uri : String, example: nil, validation: nil}, {decl: retry_delay : Time::Span = 10.milliseconds, example: nil, validation: nil}, {decl: stop_retrying_after : Time::Span = 1.second, example: nil, validation: nil}, {decl: driver_path : String | ::Nil, example: nil, validation: nil}] of Nil
VERSION = "0.10.2"
Class methods
configure
Sourcedriver
Sourcereset
Sourcesettings
Sourceshutdown
Sourceuse_default_driver
Sourcewait_for_server(timeout : Time::Span = 5.seconds)
SourceInstance methods
accept_alert
SourceAdd text to the end of a field
fill("comment:body", with: "Lucky is:")
append("comment:body", " So much fun!")
current_path
Sourcedismiss_alert
Sourcedriver
Sourceexpand_page_to_fullsize
Sourcefill(name_attr : String, with value)
Set the text of a form field, clearing any existing text
fill("comment:body", with: "Lucky is great!")
fill(element : Element, with value)
Sourcehtml
Sourcepause
SourceSelect an option from a select element
select("post:category", value: "rant")
If given an Array(String), the select is assumed to have the 'multiple' attribute
and will raise a LuckyFlow::InvalidMultiSelectError if it doesn't.
select("post:tags", value: ["rant", "technology"])
settings
Sourcewith_fullsized_page
SourceNested types
- LuckyFlow::Driver
- LuckyFlow::DriverInstallationError
- LuckyFlow::Element
- LuckyFlow::ElementNotFoundError
- LuckyFlow::Error
- LuckyFlow::ErrorMessageWhenNotFound
- LuckyFlow::Expectations
- LuckyFlow::FindElement
- LuckyFlow::HabitatSettings
- LuckyFlow::InfiniteRedirectError
- LuckyFlow::InvalidMultiSelectError
- LuckyFlow::InvalidOperationError
- LuckyFlow::NotSupportedByDriverError
- LuckyFlow::NotSupportedByElementError
- LuckyFlow::Registry
- LuckyFlow::Selector
- LuckyFlow::Selenium
- LuckyFlow::Spec
- LuckyFlow::Webless