Robot file to reproduce the issue:
*** Settings ***
Library Selenium2Library
Test Teardown Close All Browsers
*** Test Cases ***
Reproduce the bug
Open Browser http://robotframework.org/ chrome
Capture Page Screenshot
Maximize Browser Window
Capture Page Screenshot
Run this file in two ways:
1.
xvfb-run -a --server-args="-screen 10, 1920x1080x16" robot filename.robot
2.
In the first case, we have two identical screenshots (before maximizing the window and after that) which is NOT expected.
In the second case we have two different screenshots (the difference is in their size) which is expected.
Conclusion: "Maximize Browser Window" keyword is not working under XVFB headless environment.
XVFB needed to run the tests on jenkins CI system
I am using the latest versions of chrome, chromedriver, selenium2library and robotframework on Debian.
Could you help to address the issue?