0
votes

I want to take screenshot of the entire web page. I have tried using

capture page screenshot

But the problem is that it takes the screenshot only of the visible part of the webpage. I want the screenshot for the whole page.

1

1 Answers

1
votes

You have to tinker something for yourself. For example you can setup a loop where you are sending PAGE DOWN keys to the browser to scroll down and take a screenshot after each iterations.

E.g.:

*** Settings ***
Library    SeleniumLibrary

*** Test Cases ***
Take Screenshot
    Open Browser    https://stackoverflow.com    Chrome
    FOR    ${i}    IN RANGE    4
        Capture Page Screenshot
        Press Keys    None    PAGE_DOWN
    END
    [Teardown]    Close All Browsers

You have to decide based on your application how many scrolls you need.