Repository: teampoltergeist/poltergeist

Issue #373: Intermittent Capybara::Poltergeist::BrowserError in within_iframe
Created: 2013-08-12T17:05:08Z
With the following code snippet, I get intermittent errors that are difficult to reproduce.
    page.within_frame('display-iframe') do
      page.should have_content('Bacon Ipsum')
    end
     Failure/Error: page.should have_content('Bacon Ipsum')
     Capybara::Poltergeist::BrowserError:
       There was an error inside the PhantomJS portion of Poltergeist. This is probably a bug, so please report it. 

       [object Object]
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/web_page.js:355
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/web_page.js:38
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/node.js:24
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/browser.js:157
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/browser.js:67
           at about:blank:37
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/connection.js:16
           at /home/yongwen/.rvm/gems/ruby-2.0.0-p247@typesetr/gems/poltergeist-1.3.0/lib/capybara/poltergeist/client/compiled/connection.js:1
     ....

I am using the latest version of phantomjs (1.9.1). Could this be a phantomjs bug?
Not sure what other details I can provide. Please let me know.

Duplicate issue #536: Issue with Iframes - Capybara::Poltergeist::BrowserError
Created: 2014-10-07T04:29:26Z
When a test opens an iframe and then:

refers to elements within that iframe before the iframe has fully loaded
OR
triggers a page navigation within the iframe and then refers to elements within the iframe before it has fully loaded again

It throws the below error
Capybara::Poltergeist::BrowserError:
There was an error inside the PhantomJS portion of Poltergeist. This is probably a bug, so please report it.
   TypeError: 'undefined' is not an object (evaluating 'element.parentNode')
   [object Object]
       at /Users/supatimbo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/poltergeist-1.5.1/lib/capybara/poltergeist/client/compiled/web_page.js:387
       at /Users/supatimbo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/poltergeist-1.5.1/lib/capybara/poltergeist/client/compiled/web_page.js:36
       at /Users/supatimbo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/poltergeist-1.5.1/lib/capybara/poltergeist/client/compiled/node.js:23
       at /Users/supatimbo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/poltergeist-1.5.1/lib/capybara/poltergeist/client/compiled/browser.js:153
       at /Users/supatimbo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/poltergeist-1.5.1/lib/capybara/poltergeist/client/compiled/browser.js:65
       at about:blank:35
       at /Users/supatimbo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/poltergeist-1.5.1/lib/capybara/poltergeist/client/compiled/connection.js:16
       at /Users/supatimbo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/poltergeist-1.5.1/lib/capybara/poltergeist/client/compiled/connection.js:1

Closing comment (2014-12-04T17:55:53Z): Looks like duplicate of #373