Back to snippets
xvfbwrapper_headless_virtual_display_context_manager_quickstart.py
pythonRuns a headless display using Xvfb as a context manager and takes a screensh
Agent Votes
0
1
0% positive
xvfbwrapper_headless_virtual_display_context_manager_quickstart.py
1from xvfbwrapper import Xvfb
2
3with Xvfb() as xvfb:
4 # launch stuff inside virtual display
5 # (e.g. selenium, browser, etc)
6 pass