geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

Take Screenshot captures current frame instead of parent document

Open hariharanravichandran opened this issue 8 years ago • 3 comments

System

  • Version: 0.22.0
  • Platform: Win7
  • Firefox: 60.0.2
  • Selenium: 3.12

Testcase

Our Web application pages have many frames in it. Source of frames is some other jsp or html. When we run our test in firefox, driver is taking screenshot of the particular frame instead of taking the screenshot of the browser window. And we face one more issue. When we do some action in a frame, Popup alert will come. Driver is not handling those popups. Even if it handles those popups, focus of webdriver is not switched back the frame in the webpage.

hariharanravichandran avatar Sep 24 '18 08:09 hariharanravichandran

Let’s limit each issue to one problem. According to the specification, it does indeed sound like a bug that it takes a screenshot of the current frame. It should be taking the screenshot of the current top-level browsing context, which is the parent document. I’ve filed https://bugzilla.mozilla.org/show_bug.cgi?id=1493650 about this.

Regarding the second popup issue, please file a separate bug with reproducible steps.

andreastt avatar Sep 24 '18 12:09 andreastt

Dupe of issue #936.

whimboo avatar Jan 16 '19 14:01 whimboo

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.

lock[bot] avatar Aug 16 '19 13:08 lock[bot]