Module: Scry::Helpers

Included in:
Scry, Course, ExportDownloader, ExportGenerator
Defined in:
lib/scry/helpers.rb

Instance Method Summary collapse

Instance Method Details

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

#write_log(log, data) ⇒ Object

Enqueues data to be written to a log file.



15
16
17
# File 'lib/scry/helpers.rb', line 15

def write_log(log, data)
  Scry::LogWriter.perform_async(log, data)
end