SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Cannot take screenshot showing the URL #6253

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 6253

What steps will reproduce the problem?
1. Take a screenshot with FileUtils.copyFile(scrFile, new File("c:\\screenshots\\RESIRegThankYouPage"
+ formatter.format(date)+ ".png"));

Expected: Full Screenshot showing which page you are on.
Actual: It only shows the body of the window - not the URL!

Selenium version: 2.33
OS: Win XP
Browser: Firefox 
Browser version:21

Reported by superjigz on 2013-09-12 11:03:13

lukeis commented 8 years ago
I think Selenium doesn't actually take a screenshot from the screen, but it draws the
DOM tree in the screenshot file.
Since the address bar is not part of the DOM, it's sort of expected behavior.

Although I agree it would be quite handy to also have the URL in the screenshot (it
can be accessed through javascript code).

Reported by amustea on 2013-09-12 17:11:17

lukeis commented 8 years ago
Yes, Selenium takes screenshots on DOM level, and can't make a picture of the browser
menu, statusbar, addressbar etc.

Reported by barancev on 2013-09-17 20:14:51

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:17:55