Class: GoogleAjaxCrawler::Drivers::CapybaraWebkit
- Includes:
- Capybara::DSL
- Defined in:
- lib/google_ajax_crawler/drivers/capybara_webkit.rb
Instance Attribute Summary
Attributes inherited from Driver
Instance Method Summary collapse
- #default_page_loaded_test ⇒ Object
-
#initialize(*args) ⇒ CapybaraWebkit
constructor
A new instance of CapybaraWebkit.
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_test ⇒ Object
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 |