Module: Scry::Helpers
- Included in:
- Scry, Course, ExportDownloader, ExportGenerator
- Defined in:
- lib/scry/helpers.rb
Instance Method Summary collapse
-
#click_link(agent:, page:, text:) ⇒ Object
Clicks a link with the given text.
-
#write_log(log, data) ⇒ Object
Enqueues data to be written to a log file.
Instance Method Details
#click_link(agent:, page:, text:) ⇒ Object
Clicks a link with the given text.
8 9 10 |
# File 'lib/scry/helpers.rb', line 8 def click_link(agent:, page:, text:) agent.click(page.link_with(text: text)) end |