Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

346
Vistas
Is there a way to set an specific display at chromium launch options?

I'm doing a node aplication with Puppeteer and I need to set an Xvfb display as the main display for the browser, but i can't seem to find any way to do this. The closest I got to what I want is to use '--use-fake-device-for-media-stream', but I want to set as a real device instead of just a test video. There is anyway I can do this ?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

This solution has worked for me:

# install the package
apt-get install -y xvfb

# set display variable
export DISPLAY=:0

# start Xvfb daemon in the background (only once)
/usr/bin/Xvfb :0 -screen 0 1024x768x24 &

# wait a bit to let it come up (only once)
sleep 5

# add prefix "xvfb-run" to "node" or "python" script
xvfb-run node myscript.js
# or
xvfb-run python myscript.py

Don't forget to set { headless: false } when launching puppeteer.

Source: https://anti-captcha.com/apidoc/articles/how-to-integrate-the-plugin

about 4 years ago · Juan Pablo Isaza Denunciar

0

Puppeteer is headless (without a display) by nature, but you can set default viewports, pixel ratios, etc to simulate the devices you're testing against using page.emulate() or page.setViewport().

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda