melekes
melekes

Reputation: 1888

Get page driver from inside SitePrism page

How can I get page driver from inside the SitePrism page?

According to poltergeist docs all I need is to call:

page.driver

But it refers to the Capybara page, not SitePrism's page. The question therefore: how to get Capybara page when you are using SitePrism? I wasn't able to find page/driver method or something like that in SitePrism.

Thanks in advance.

Upvotes: 1

Views: 307

Answers (1)

melekes
melekes

Reputation: 1888

I found it by looking at capybara and siteprism sources. All you need is to call the page method:

page.page.driver

Upvotes: 1

Related Questions