"Maximize Browser Window" keyword has stopped working on XVFB headless environment

815 views
Skip to first unread message

fire flex

unread,
Dec 27, 2016, 9:18:48 AM12/27/16
to robotframework-users
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.
robot filename.robot

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?

Dmitriy

unread,
Dec 27, 2016, 10:59:08 AM12/27/16
to fire flex, robotframework-users
Hi, 

Maximize never worked for xvfb use set window size instead 

Thanks,
Dmitriy

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages