Module: NdrDevSupport::IntegrationTesting::Poltergeist::DSL
- Defined in:
- lib/ndr_dev_support/integration_testing/poltergeist.rb
Overview
Additional testing DSL, for phantomjs-specific interactions.
Instance Method Summary collapse
-
#clear_headless_session! ⇒ Object
Instruct phantomjs to clear its session:.
-
#delete_all_cookies! ⇒ Object
Get phantomjs to delete all of the cookies for the current page without resetting:.
Instance Method Details
#clear_headless_session! ⇒ Object
Instruct phantomjs to clear its session:
9 10 11 |
# File 'lib/ndr_dev_support/integration_testing/poltergeist.rb', line 9 def clear_headless_session! page.driver.reset! end |
#delete_all_cookies! ⇒ Object
Get phantomjs to delete all of the cookies for the current page without resetting:
15 16 17 18 19 |
# File 'lib/ndr_dev_support/integration_testing/poltergeist.rb', line 15 def page.driver..each do |name, value| page.driver.(name) end end |