Module: Capybara::ActiveAdmin::Actions::Form
- Included in:
- Capybara::ActiveAdmin::Actions
- Defined in:
- lib/capybara/active_admin/actions/form.rb
Instance Method Summary collapse
Instance Method Details
#click_submit(value, options = {}) ⇒ Object
7 8 9 10 |
# File 'lib/capybara/active_admin/actions/form.rb', line 7 def click_submit(value, = {}) selector = form_submit_selector(value) find(selector, ).click end |
#fill_in_file(label, options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/capybara/active_admin/actions/form.rb', line 12 def fill_in_file(label, = {}) path = .delete(:with) attach_file(label, path) end |