Questions tagged [pyvirtualdisplay]

PyVirtualDisplay is python wrapper for Xvfb, Xephyr and Xvnc.

82 questions
2
votes
1 answer

Firefox Webdriver doesn't work if SIGCHLD is ignored

I have the following code snippet that works fine: from pyvirtualdisplay import Display from selenium import webdriver display = Display(visible=0, size=(800, 600)) display.start() browser =…
Mike
  • 2,065
  • 25
  • 29
2
votes
1 answer

need python script to use already open Xvfb server process

I have a php script that runs many python scripts. The python scripts utilize a headless firefox browser using pyvirtualdisplay and xvfb. My issue is that each python script opens a new Xvfb process on my linux server. Thus I get multiple processes…
Cosco Tech
  • 565
  • 1
  • 4
  • 22
1
vote
1 answer

How to open a new window on click with python, selenium, pyvirtualdisplay?

I wrote a scraper in python which uses selenium, chrome and an added extension. The scraper works locally with the display visible but not when I try to run it in headless mode. On the scraped website there is a button which automatically opens a…
janboro
  • 79
  • 7
1
vote
0 answers

PyVirtualDisplay Syntax Error When Importing Display in Python

I am trying to run PyVirtualDisplay on my raspberry pi to open up a webpage. However, when I run it, an error is thrown. The error is as follows: Traceback (most recent call last): File "test.py", line 4, in from pyvirtualdisplay…
pigeen
  • 13
  • 4
1
vote
1 answer

How to automate the activation of Flash plug-in using selenium firefox geckodriver?

When I try to open a page with flash using an automated python script with Selenium I reach the page in the picture below. And I cannot pass. It's a remote server running Ubuntu 16.04, without access to a monitor or a keyboard/mouse. Python…
1
vote
0 answers

Cannot download csv using pyvirtualdisplay + selenium + firefox on Pythonanywhere

I am trying to host my selenium script on Pythonanywhere. However, I cannot see any .csv being downloaded through my code. I have searched around for a while. such a headache! Any help would be greatly appreciated! from pyvirtualdisplay import…
1
vote
1 answer

Use selenium on webserver with firefox profile

I'm trying to write a script which will sync my data from one site to another. The first site doesn't have public api. But i know the queries, that could provide me json response with all data I need. I decided to use a selenium. The main problem is…
Sandzhaj
  • 53
  • 6
1
vote
1 answer

Export OpenGL kernel code with Apache TVM in Colab (X11 related error)

I have problem with exporting OpenGL kernel code with Apache TVM - Open deep learning compiler stack for CPUs, GPUs, and specialized accelerators in Google Colaboratory. It can reproduce on Build TVM.ipynb. To enable Xvrf, I installed…
1
vote
1 answer

EasyProcessCheckInstalledError: cmd=['Xephyr', '-help']

I'm using Python 2.7 on Windows 7 SP1 and I've installed pyvirtualdisplay and Selenium properly however when I run this script : from pyvirtualdisplay import Display display = Display(visible=1, size=(800, 600)) display.start() I get this error…
Fienda
  • 87
  • 1
  • 3
  • 9
1
vote
1 answer

Why do I get small screenshots with pyvirtualdisplay in selenium tests?

I am using complex selenium tests and pyvirtualdisplay in order to take screenshots during the selenium testing. However, I am using the following code to create a Display: self.display = Display(visible=0, size=(1366, 768)) …
Alex
  • 41,580
  • 88
  • 260
  • 469
1
vote
1 answer

Why do I get 'easyprocess' output when using 'pyvirtualdisplay' in selenium tests?

I am trying to use pyvirtualdisplay in selenium tests in order to create screenshots. Here is how I do it in the tests within a TestSuite python class: self.display = Display(visible=0, size=(1366, 768)) self.display.start() before creating the…
Alex
  • 41,580
  • 88
  • 260
  • 469
1
vote
1 answer

PythonAnywhere - No module named 'pyvirtualdisplay'

I am trying to run online a project on PythonAnywhere. When I call this function: def getPrice(item_url): from forex_python.converter import CurrencyRates from selenium import webdriver from pyvirtualdisplay import Display #from…
BobbyJ
  • 639
  • 2
  • 8
  • 8
1
vote
1 answer

PyVirtualDisplay AttributeError: 'Display' object has no attribute 'old_display_var'

I get AttributeError: 'Display' object has no attribute 'old_display_var' in PyVirtualDisplay when trying to stop display after tests execution: in setUp method: self.display = Display(visible=False, size=(1440, 900)) self.display.start() then…
Vadim Kovrizhkin
  • 1,575
  • 4
  • 16
  • 27
1
vote
1 answer

The pyvirtualdisplay Error in python

I'm getting the following error when i try to run the python code File_1.py actually import File_2.py to call the function. Traceback (most recent call last): File "File_1.py", line 1, in import File_2 File…
1
vote
0 answers

pyvirtualdisplay: Change visibility

I would like to toggle visibility on/off for a display created using pyvirtualdisplay, or alternatively minimize it and bring it back to screen using python. Unfortunately, there appears to be no method for this, and changing display.visible after…
FooBar
  • 15,724
  • 19
  • 82
  • 171