Class: GoogleAjaxCrawler::Drivers::CapybaraWebkit

Inherits:
Driver
  • Object
show all
Includes:
Capybara::DSL
Defined in:
lib/google_ajax_crawler/drivers/capybara_webkit.rb

Instance Attribute Summary

Attributes inherited from Driver

#options

Instance Method Summary collapse

Methods inherited from Driver

#evaluate_script, #get_content, #html, #is_page_loaded?, #visit, #wait_until_page_is_fully_loaded

Constructor Details

#initialize(*args) ⇒ CapybaraWebkit

Returns a new instance of CapybaraWebkit.



10
11
12
13
# File 'lib/google_ajax_crawler/drivers/capybara_webkit.rb', line 10

def initialize *args
  super *args
  configure
end

Instance Method Details

#default_page_loaded_testObject



15
16
17
# File 'lib/google_ajax_crawler/drivers/capybara_webkit.rb', line 15

def default_page_loaded_test
  (page.evaluate_script('$.active') == 0)
end