class LuckyFlow
- LuckyFlow
- Reference
- Object
Included Modules
- Habitat::SettingHelpers
- LuckyFlow::Expectations
Defined in:
lucky_flow.cr:4lucky_flow.cr:9
lucky_flow/error_message_when_not_found.cr
lucky_flow/errors.cr
lucky_flow/expectations.cr
lucky_flow/version.cr
Constant Summary
-
REQUIRED_SETTINGS =
[screenshot_directory : String = "./tmp/screenshots", base_uri : String, retry_delay : Time::Span = 10.milliseconds, stop_retrying_after : Time::Span = 1.second] of TypeDeclaration
-
SERVER =
LuckyFlow::Server::INSTANCE
-
VERSION =
"0.1.0"
Class Method Summary
Instance Method Summary
- #click(css_selector : String)
- #el(css_selector : String, text : String)
- #el(css_selector : String)
- #field(name_attr : String)
- #fill(name_attr : String, with value : String)
-
#fill_form(form : LuckyRecord::Form.class | LuckyRecord::VirtualForm.class, **fields_and_values)
Fill a form created by Lucky that uses a LuckyRecord::Form
- #open_screenshot(process = Process, time = Time.now) : Void
- #session
- #settings
- #visit(path : String)
- #visit(action : Lucky::Action.class, as user : User | Nil = nil)
- #visit(route_helper : Lucky::RouteHelper, as user : User | Nil = nil)
Class Method Detail
Instance Method Detail
def fill_form(form : LuckyRecord::Form.class | LuckyRecord::VirtualForm.class, **fields_and_values)
#
Fill a form created by Lucky that uses a LuckyRecord::Form
Note that Lucky and LuckyRecord are required to use this method
fill_form QuestionForm,
title: "Hello there!",
body: "Just wondering what day it is"