Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Iframes and javascript errors with capybara webkit #349

Open
galkon opened this Issue · 2 comments

3 participants

Michael Treacher James Petty Joe Ferris
Michael Treacher

Hi there,

I have found a weird issue where if a page within an iframe has a javascript error capybara-webkit interprets the page to be the contents of the iframe rather than the actual page which contains the iframe.

I have recently came from using selenium-webdriver where all the tests ran fine but with capybara webkit i have this issue so it must be specific to capybara-webkit.

I found this by outputting page.html into the console.

James Petty

As far as I know this is a symptom of the way that capybara-webkit performs user actions through javascript and can't be changed. When you have to perform actions inside of an iframe the javascript context must be that of the iframe, and can no longer access the page that it's contained within. AFAIK: Not fixable.

Joe Ferris
Admin

Can you put together a test to reproduce this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.