Module: MediawikiSelenium::EmbedBrowserSession
- Defined in:
- lib/mediawiki_selenium/cucumber/embed_browser_session.rb
Overview
Embeds the browser session upon creation into the active Cucumber logger.
Instance Method Summary collapse
-
#browser ⇒ Object
Embeds the browser session into the active Cucumber logger(s) as soon as Environment is done creating it.
Instance Method Details
#browser ⇒ Object
Embeds the browser session into the active Cucumber logger(s) as soon as MediawikiSelenium::Environment is done creating it. Note that the 'application/vnd.webdriver-session-id' MIME used for the embedding is made up for this purpose.
12 13 14 15 16 17 18 |
# File 'lib/mediawiki_selenium/cucumber/embed_browser_session.rb', line 12 def browser super.tap do |b| if b.driver.respond_to?(:session_id) (b.driver.session_id, 'application/vnd.webdriver-session-id') end end end |