Open lukeis opened 8 years ago
I can confirm this issue, the same thing is hapenning to me:
* Python-selenium script works well with X11
* The same script with xvfb doesn't work
* If I switch to Chrome as my browser (with xvfb) it works.
Any ideas on what could be causing this issue?
Reported by andres.riancho
on 2013-08-08 12:02:23
More info for the bug report, when the test fails in xvfb I take a screenshot and instead
of the button I want to click I see the attached image, which is NOT something I have
in my web application.
Reported by andres.riancho
on 2013-08-08 12:20:02
Based on the "Xvfb screenshot.png" screenshot of the first bug report, it seems that
Thomas is using Bootstrap for the web application, which I'm also doing. Maybe it has
something (very strange) to do with that?
Reported by andres.riancho
on 2013-08-08 12:42:08
In my case the icon was a bootstrap feature which "compresses" the top navbar when the
screen has not enough space, thus hiding the button I wanted to press from user's view.
I solved it by making the Xvfb screen bigger.
Reported by andres.riancho
on 2013-08-08 19:48:30
Reported by barancev
on 2013-08-08 23:11:22
Also experiencing issues with focus for firefox in an xvfb session. Other browsers do
not seem to suffer this problem.
Reported by lloydwatkin
on 2014-06-23 08:18:45
I tried to maximize the windows at beginning and didn't work, I realized screenshots
from both environments were different size (yes, the resolution is different). So you
might also need to start the display using a bigger resolution. To me Xvfb(width=1440,
height=755) was perfect
Reported by cherny@bolivarcoders.com
on 2015-04-18 16:01:46
This is what I had to do to get around the issue.
driver.manage().window().setSize(new Dimension(1920,1080));
This in addition to running xvfb at a 1920x1080 resolution. Had to do both for it to
work.
Reported by konradt95
on 2015-05-12 18:36:48
Found this as well. A certain drop-down was failing to click through, only when run
via Xvfb. Setting the xvfb resolution to 1920x1080 solved it.
Changed my selenium standalone invocation to this:
xvfb-run -s "-screen 0, 1920x1080x24" java -jar ~/selenium/selenium-server-standalone-2.47.1.jar
Reported by andre.dalle
on 2015-08-24 20:39:47
Reported by luke.semerau
on 2015-09-17 17:45:54
Originally reported on Google Code with ID 5828
Reported by
thomas.debona
on 2013-06-25 07:48:41![Xvfb screenshot.png](https://storage.googleapis.com/google-code-attachments/selenium/issue-5828/comment-0/Xvfb screenshot.png)