class Axe::Loader
Public Class Methods
new(page, lib)
click to toggle source
# File lib/axe/loader.rb, line 6 def initialize(page, lib) @page = page @lib = lib end
Public Instance Methods
call(source)
click to toggle source
# File lib/axe/loader.rb, line 11 def call(source) @page.execute_script source Axe::Hooks.run_after_load @lib load_into_iframes(source) unless Axe::Configuration.instance.skip_iframes end
Private Instance Methods
load_into_iframes(source)
click to toggle source
# File lib/axe/loader.rb, line 19 def load_into_iframes(source) @page.find_frames.each do |iframe| @page.within_frame(iframe) { call source } end end