PyVirtualDisplay is python wrapper for Xvfb, Xephyr and Xvnc.
Questions tagged [pyvirtualdisplay]
82 questions
4
votes
2 answers
cannot print out the combined table properly from beautifulsoup
Since this URL table is combined, so cannot print out the table as expected and the output formatting is very strange, thanks !
# -*- coding:UTF-8 -*-
from pyvirtualdisplay import Display
display = Display(visible=0, size=(1024,…

Mary
- 769
- 3
- 14
4
votes
1 answer
How to get PID of process when using XVFB via Pyvirtualdisplay?
Trying to find the PID of a Display object when creating it using Pyvirtualdisplay. The display an Xvfb virtual framebuffer.
We have tried looking at the .pid property, but it is not present. Also, the .process property is non existant. Both…

Juan Carlos Coto
- 11,900
- 22
- 62
- 102
3
votes
0 answers
pyVirtualDisplay size is not working as expected
I am trying to run chrome in headless mode on a remote EC2 server running on Ubuntu.
I recently did package upgrades
Google Chrome 83.0.4103.97
ChromeDriver 83.0.4103.39…

lollerskates
- 964
- 1
- 11
- 28
3
votes
1 answer
Take screenshots at same time Xvfb multiple displays
I have a requirement where I am running a selenium script which opens up 2 instances of Firefox on a machine. I want to take screenshots of both instances at the same time. The same time part is important.
I used following steps to simulate…

skjindal93
- 706
- 1
- 16
- 34
3
votes
1 answer
Selenium not working on server as it works on local machine
I have recently completed my Selenium Python scraper. It works totally fine when I run it on my personal machine but the results are not same when I run it on the server. On the server I am running headless using…

abhanan93
- 251
- 1
- 2
- 11
3
votes
0 answers
Persistent pyvirtualdisplay
I am trying to create a virtual display to crawl through web pages using selenium webdrivers. My code is something like
display = Display(visible = 0, size = (800,800))
display.start()
driver = webdriver.Chrome()
But this display is…

Vinayak Daramwar
- 77
- 1
- 3
3
votes
1 answer
Python open multiple display windows from a loop
I'm getting some great help from the community today and hoping someone can put me in the right direction on this little one.
I have a loop going where I am trying to load up a number of different web pages but at the moment the same web page is…

Grimlockz
- 2,541
- 7
- 31
- 38
2
votes
0 answers
pyvirtualdisplay: FileNotFoundError: [WinError 2] The system cannot find the specified
I'm leanrning Andrew Ng's course which is 2022 Machine Learning Specialization.
There is a lab in the week3 of course3, in which the code shows below:
from pyvirtualdisplay import Display
Display(visible=0, size=(840, 480)).start();
But I got the…

yishifeng
- 21
- 1
2
votes
1 answer
XStartError in pyvirtualdisplay
I'm running a co-workers notebook on my local machine (she used collab).
Immediately after import, this line of code
display = pyvirtualdisplay.Display(visible=0, size=(1400, 900))
_ = display.start()
causes this error (abbreviated, it's pages…

rocksNwaves
- 5,331
- 4
- 38
- 77
2
votes
2 answers
I have the problem with PyVirtualDisplay==0.2.5 package for running tests with usage of virtual displays (headless mode)
My tests are working and running as expected with PyVirtualDisplay==0.2.1, but I have a problem with the latest version of this package (for example, PyVirtualDisplay==0.2.5).
My code snippet:
...
def _set_up(self):
# Creation of…

Ratmir Asanov
- 6,237
- 5
- 26
- 40
2
votes
2 answers
How to attach pyautogui to the virtual display?
How do I attach pyautogui to the display in multithreaded mode?
In the example of my code, pyautogui always has access to the upper display.
Is it possible to have pyautogui control on each display?
import os
from selenium import webdriver
from…

slaw
- 55
- 1
- 10
2
votes
2 answers
How dose pyvirtualdisplay work on Xvfb or how many Xvfb could be open by pyvirtualdisplay?
I had used the following code to open saveral Xvfb for test and got some problems as:
A. Some process of Xvfb's status(following the code) were Z or SL,sometime were Z+ or SL+ , but python process was going on normally
What dose it mean?
B. The…

绿飕飕
- 23
- 5
2
votes
0 answers
Two instances of pyvirtualdisplay (xvfb) won't run at the same time
So I have a small script which uses pyvirtualdisplay to make a virtual display to run some selenium tests. I have tested the same code on my windows computer and both run just fine at the same time. Which leads me to believe that the problem is with…

Parthey Bhatt
- 21
- 3
2
votes
1 answer
Trouble clicking web element with python, selenium, and pyvirtualdisplay
I have a simple web crawler that logs into Twitter, goes the the following page, then grabs information from all my followers (if they are muted, etc) by clicking on the gear icon. The problem is that click functionality has stopped working on my…

Tyrick
- 2,776
- 3
- 23
- 33
2
votes
1 answer
Firefox started by Selenium ignores the display created by pyvirtualdisplay
I start a display with pyvirtualdisplay before creating my WebDriver instance. If I use Chrome, it works without any problem: Chrome shows up in the Xephyr instance that pyvirtualdisplay creates. However, when I use Firefox, the Xephyr instance…

Louis
- 146,715
- 28
- 274
- 320