phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

frameContent does not reflect DOM changes (unlike main frame 'content')

Open plamzi opened this issue 11 years ago • 1 comments

Steps to reproduce: (latest 2.0 official release)

  1. Open a page containing an iframe.
  2. Use switchToFrame to shift to the frame and manipulate content.
  3. After a reasonable delay, grab the 'frameContent' and then immediately a screenshot of the whole page.

What are you seeing?

The 'frameContent' seems to reflect the initial state of the frame's DOM (matches document.documentElement.innerHTML). The screenshot of the page properly reflects the state of the frame after manipulation.

What do you expect to see?

A stringified HTML of the altered DOM state, just like the one served by 'content' for the main frame. The current documentation for content and frameContent suggests that this would be the intended behavior for both methods.

P. S. Amazing project, been using it almost since its inception and pleased to watch it thrive.

plamzi avatar Mar 02 '15 02:03 plamzi

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

stale[bot] avatar Dec 30 '19 10:12 stale[bot]