0

I try to run firefox in headless mode for selenium.

$xvfb-run firefox seems to work.

I run firefox through selenium so i cannot run xvfb-run directly.

So i start

Xvfb :1 -screen 0 1024x768x24 &

and then

set DISPLAY:=1 env DISPLAY:=1

Still when i run firefox i get

Error: no display specified

I run on centos 6 and firefox 38 ESR.

What can be done?

SiKing
  • 10,003
  • 10
  • 39
  • 90
David Michael Gang
  • 7,107
  • 8
  • 53
  • 98

2 Answers2

0

can you try that? export DISPLAY=:1

Mahsum Akbas
  • 1,523
  • 3
  • 21
  • 38
0

start firefox with --display arg

/usr/bin/firefox --display=:1