Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Browser not maximizing when running in xvfb #6775

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 6775

What steps will reproduce the problem?
1. Execute this script file

require 'selenium-webdriver'
display_number = 150
`/usr/bin/Xvfb :#{display_number} -screen 0 1920x1080x24 -ac >/dev/null 2>&1 &`
ENV['DISPLAY'] = ":#{display_number}"
@driver = Selenium::WebDriver.for :firefox
@driver.manage.window.maximize
`import -display localhost:#{display_number} -window root /tmp/firefox_maximize.png`
@driver = Selenium::WebDriver.for :chrome
@driver.manage.window.maximize
`import -display localhost:#{display_number} -window root /tmp/chrome_maximize.png`


What is the expected output? What do you see instead?
On screenshot you can see, that browser maximized, but use different resolution for
maximization, than 1920x1080. Firefox and chrome maximizes in different size windows,
I think size of that windows have something to do with real (non-xvnc) system resolution

Selenium version: selenium-webdriver (2.39.0)
OS: Kubuntu 13.10 x64, Real x server display resolution 1680x1050 + 1280x1024 (Two-Monitor
setup)
Browser:
Firefox 26
Chrome Version 31.0.1650.63, Chromedriver 2.8


Reported by ShockwaveNN on 2013-12-26 12:36:32


- _Attachment: chrome_maximize.png
![chrome_maximize.png](https://storage.googleapis.com/google-code-attachments/selenium/issue-6775/comment-0/chrome_maximize.png)_ - _Attachment: firefox_maximize.png
![firefox_maximize.png](https://storage.googleapis.com/google-code-attachments/selenium/issue-6775/comment-0/firefox_maximize.png)_

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions