-
Notifications
You must be signed in to change notification settings - Fork 53
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)
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
sudo yum -y install firefox Xvfb libXfont Xorg
-
sudo yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"
(installation takes a few minutes) - Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99:
Xvfb :99 -ac -screen 0 1280x1024x24 &
- Tell all XWindows applications in this terminal session to use the new Xvfb display port:
export DISPLAY=:99
- Start the Selenium server, eg:
java -jar /opt/selenium-server-standalone.jar &
- Now start your Selenium tests. The Selenium server should spawn a headless Firefox instance and your tests should run successfully.