简体   繁体   中英

Take a screenshot of an entire webpage using Robot Framework

I have a problem on taking a screenshot using robotframework.

Currently I am using keyword Capture Page Screenshot on Selenium2library. The problem is that, keyword only captures the webpage visible on the screen. We needed a screenshot that could take the entire webpage. This means that when it capture a screenshot it should scroll down to the bottom of the webpage and capture the whole page. Is that possible?

Appreciate everyone can suggest if there are other library that we can use.

You can do that with a headless browser:

http://phantomjs.org/

Execute it from Python as a separate process if you need to, storing the result into a file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM