Comments (6)
You find the answer in the README: "pyvirtualdisplay is a python wrapper for Xvfb, Xephyr and Xvnc"
I'dont know Selenium but you can ask your questions about it in the Selenium project forum.
from pyvirtualdisplay.
@shawnngtq , it' really simple. I have a project where I need to visit some urls, take screenshots and recognize text using Tesseract. The first option is to take a screenshot of an arbitrary size is to run chrome headless. On the other hand, any decent anti bot system will block a headless browser on sight. The other solution is to run a headfull browser. The problem here is that it requires some window manager and you can't simply install Gnome and expect Chrome to launch if you're using SSH as SSH "doesn't see" (a poor choice of words) any displays. So I'm using this lib to create a big sized xvfb and an arbitrary sized Chrome.
@ponty , I'm appreciating your job a lot. This package really saves a lot of time for someone who works with browsers and anti bot systems
from pyvirtualdisplay.
@DobroAlex
You can run headless selenium, but some website would block these. With pyvirtualdisplay, if visible=False
, even though it looks headless, but the selenium that runs within it is not headless, therefore wouldn't be block. Is my understanding correct? 😄
from pyvirtualdisplay.
Is my understanding correct?
That would indeed be useful to know. Although, I think there are websites that can tell that it is controlled selenium visiting even when selenium is not running headless.
from pyvirtualdisplay.
Hi, I have a question, don´t know if here is the right to place to ask...
I want to know if PyVirtualDisplay can work together with wfreerdp (https://github.com/FreeRDP/FreeRDP/wiki/PreBuilds)
My need is to build a sensor in Nagios that tries to connect to a windows server to verify if the RDP service is OK.
There are sensors to do it, but they only test if the server accepts the connection. In my case the problem is that the server accepts it but the screen doesn´t load properly... It will have to run headless.... thankyou.
from pyvirtualdisplay.
Xvfb is for X display server, not for Windows. PyVirtualDisplay only starts Xvfb in headless mode.
https://en.wikipedia.org/wiki/Xvfb
from pyvirtualdisplay.
Related Issues (20)
- FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb' HOT 3
- Windows support for PyVirtualDisplay HOT 2
- display.start() stacks on multiple session HOT 1
- GPU/Hardware Acceleration HOT 4
- module not found HOT 2
- Chrome Options Not Working Properly Or User Error? HOT 1
- "Not a valid VNC server" when running VNC example HOT 2
- Set new session on created display
- XIO: fatal IO error 22 (Invalid argument) on X server ":0" after 143 requests (136 known processed) with 12 events remaining. HOT 1
- FileNotFoundError: [WinError 2] Impossibile trovare il file specificato (impossible to find the specified file) HOT 1
- Never clear values from _USED_DISPLAY_NR_LIST HOT 3
- Issues with wsl2 + win11 HOT 4
- Do there have way to make work it with windows? HOT 1
- mouse control or keyboard HOT 3
- Using backend 'xvnc' emits error 'Unrecognized option: -SecurityTypes' HOT 3
- FileNotFoundError: [Errno 2] No such file or directory: 'Xvnc': 'Xvnc' for Mac OS HOT 4
- add -glamor flag for xephyr backend for gpu acceleration HOT 1
- ValueError: filedescriptor out of range in select()
- Selenium and Chrome DevToolsActivePort file doesn't exist after 89/90 chrome invocations HOT 4
- FileNotFoundError: [WinError 2] The system cannot find the file specified
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvirtualdisplay.