Questions tagged [pyvirtualdisplay]

PyVirtualDisplay is python wrapper for Xvfb, Xephyr and Xvnc.

82 questions
0
votes
1 answer

Use selenium to automate webpage that just works on Internet Explorer

I’m trying to use selenium to automate a webpage that just works on IE, I cannot use Edge Compatibility Mode, once I’m using a Linux server (Edge for Linux doesn’t have the IE mode). Also I have tried Chrome plugins but it doesn’t work with selenium…
0
votes
0 answers

I am working with selenium but when i use driver.get i am catching error 1020 access denied

I created a bot in Python using Selenium, uploaded Ununtu to a remote server, and when I go to the driver.get('correct_url') => site, an access denied error occurs. On windows everything works fine (code is working). chrome_options = Options() …
0
votes
0 answers

Docker and X server: Cannot establish any listening sockets

So I have the following script that I'm running in a Docker container: #!/bin/bash # silencing matplotlib warning MPLCONFIGDIR="/tmp" export MPLCONFIGDIR # Virtual display export DISPLAY=:0 Xvfb :0 -screen 0 1024x768x24 # my python module is…
WaterFox
  • 850
  • 6
  • 18
0
votes
2 answers

Using clipboard with selenium and pyvirtualdisplay

I have a selenium script that works and must use a virtual disaply (pyvirtualdisplay or xvfbwrapper) and at the end clicks a copy to clipboard button. the scripts works fine on windows (without a virtual display) but not on linux. I belive the…
0
votes
0 answers

pyvirtualdisplay errors on stdout FileNotFoundError: [Errno 2] No such file or directory

I'm running a Docker container on Azure and using pyvirtualdisplay to open a display for rendering. After doing from pyvirtualdisplay import Display display = Display(visible=False, size=(1400, 900)) display.start() I get the following error. Any…
himty
  • 314
  • 2
  • 13
0
votes
0 answers

Selenium script with pyvirtualdisplay and Xvfb not working on cron on linux vm

I have a selenium script which uses pyvirtualdisplay.Display with visible=0. The script runs fine when run manually but fails when run using cron job. I think it is due to the Xvfb and pyvirtualdisplay but I can't seem to fix it. The crontab command…
0
votes
1 answer

Running Pyvirtualdisplay on WSGI

I am trying to run pyvirtualdisplay as part of a WSGI app. I have Xfvb installed, my 000-default.conf file: # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself.…
JSwordy
  • 169
  • 1
  • 2
  • 13
0
votes
1 answer

python connect to remote host and capture webpage on local host

I've had a look around here for multiprocessing, for the most part, I've gotten it narrowed down but the last bit fails for some reason. Context I have a remote webserver that I connect to that I have port forwarded the HTTP page to a local port. I…
0
votes
1 answer

Selenium Failed to start firefox browser on server with Display(visible=0, size=(800, 600))

I run simple selenium code on my linux server but it return that error selenium.common.exceptions.WebDriverException: Message: Failed to start browser: other os error My python selenium code is this- from pyvirtualdisplay import Display from…
0
votes
0 answers

Python: Selenium Webdriver take several Screenshots

I´m writing a code that should take screenshots from 3 different breakpoints [1280 px, 768px and 320px]. But the code i have take 3 screenshots of the same screen widht. from datetime import datetime from selenium import webdriver from…
diem_L
  • 389
  • 5
  • 22
0
votes
0 answers

Selenium 3 chrome headless not working in Ubuntu 16.04.3

I am getting the following error when i try to do chrome headless browser.I am not able to find the proper error from pyvirtualdisplay import Display from selenium import webdriver display = Display(visible=0, size=(800,…
0
votes
0 answers

Pyvirtualdisplay doesn't like text

I want to get some text from a web page with selenium but when I use the pyvirtualdisplay package and I write code like this: from pyvirtualdisplay import Display display = Display(visible=0, size=(1024, 768)) display.start() ... elem =…
StackUser
  • 1,530
  • 3
  • 13
  • 17
0
votes
1 answer

is it possible to peep what selenium is doing during automated tests?

I perform headless web session tests with selenium (python, ubuntu server 15, firefox), which can last for hours. I do make use of pyvirtualdisplay + xvfb. My python scripts begin like this: from pyvirtualdisplay import Display virtualdisplay =…
fab
  • 164
  • 1
  • 13
0
votes
1 answer

FreeBSD - using pyvirtualdisplay - Python 2.7 / Selenium Web Driver

Below is the code am writing in FreeBSD. Before this code, I did pkg install xorg-vfbserver but after this I don't know which environment variable to set. Like in Ubuntu you have to do like this before using this program apt-get install xvfb export…
Tahseen
  • 1,027
  • 1
  • 12
  • 32
0
votes
2 answers

Error in trying to run Selenium in a Headless Linux Server (testing in Mac OS) with PyVirtualDisplay

I have been developing (on my Mac OSX) with Selenium Web Driver to do some scraping but I need to move the script to a Headless Linux Server. With some research, it seems I need to use PyVirtualDisplay to simulate the launching of browser for…
user1406716
  • 9,565
  • 22
  • 96
  • 151