Class: AdopsReportScrapper::ContentadClient
- Inherits:
-
BaseClient
- Object
- BaseClient
- AdopsReportScrapper::ContentadClient
- Defined in:
- lib/adops_report_scrapper/contentad_client.rb
Overview
please ensure that all live widgets have distinct name
Instance Method Summary collapse
Methods inherited from BaseClient
#before_quit_with_error, #date_supported?, #get_data, #initialize, #logout
Constructor Details
This class inherits a constructor from AdopsReportScrapper::BaseClient
Instance Method Details
#init_client ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/adops_report_scrapper/contentad_client.rb', line 7 def init_client Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, :phantomjs => Phantomjs.path) end Capybara.default_max_wait_time = 3 @client = Capybara::Session.new(:poltergeist) @client.driver.browser.js_errors = false @client.driver.resize(1920, 985) end |