Skip to content

Configuração CentOS e RedHat

Julian Cesar edited this page Jan 12, 2015 · 6 revisions

Não funcionou!

yum install Xvfb

yum install firefox

yum install xorg-x11-server-Xorg.i686

yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop" (Demora alguns minutos)

On your CentOS 6.X host

Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.

  1. sudo yum -y install firefox Xvfb libXfont Xorg
  2. sudo yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop" (installation takes a few minutes)
  3. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: Xvfb :99 -ac -screen 0 1280x1024x24 &
  4. Tell all XWindows applications in this terminal session to use the new Xvfb display port: export DISPLAY=:99
  5. Start the Selenium server, eg: java -jar /opt/selenium-server-standalone.jar &
  6. Now start your Selenium tests. The Selenium server should spawn a headless Firefox instance and your tests should run successfully.