ariya / phantomjs

Scriptable Headless Browser
http://phantomjs.org
BSD 3-Clause "New" or "Revised" License
29.46k stars 5.76k forks source link

couldn't handle nested iframe #15456

Closed liuxiaopiao closed 3 years ago

liuxiaopiao commented 3 years ago

Describe the problem couldn't handle nested iframe

Versions 2.1 Which OS: Windows

Steps to Reproduce

  1. have a page like this: <body><iframe src="src1URL" name="frame1">#document<iframe src="src2URL" ame="frame2">#document<div class="clickable"></iframe></iframe></body>
  2. use the below code to switch to child frame: page.switchToFrame('frame1'); console.log(page.frameContent); page.switchToFrame('frame2'); console.log(page.frameContent);

Actual behavior The program hangs without any error.

Expected behavior Can print the iframe content

stale[bot] commented 3 years ago

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!