Last active
January 4, 2026 21:33
-
-
Save textarcana/5855427 to your computer and use it in GitHub Desktop.
Revisions
-
Noah Sussman revised this gist
Jun 12, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # XWindows for Headless Selenium <a href="http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up"><img src="http://68.media.tumblr.com/tumblr_l6n9suWu6L1qzhtqwo1_500.jpg" alt="X Wing art by Paul Harckham"></a> How to set up a Headless Selenium Testing environment for CentOS 6.3. -
textarcana revised this gist
Nov 18, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # XWindows for Headless Selenium <a href="http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up"><img src="http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg" alt="X Wing art by Paul Harckham"></a> How to set up a Headless Selenium Testing environment for CentOS 6.3. -
textarcana revised this gist
Nov 18, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # XWindows for Headless Selenium  How to set up a Headless Selenium Testing environment for CentOS 6.3. -
textarcana revised this gist
Nov 18, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # XWindows for Headless Selenium  How to set up a Headless Selenium Testing environment for CentOS 6.3. -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -45,11 +45,11 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb. ## Further Reading 0. [Xvfb + Firefox](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html) 4. [How to connect to remote X11 hosts from a Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616) 1. [Headless Cucumbers And Capybaras With Selenium And Hudson](http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/) 1. [Centos: Installing graphical X Window System](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html) 2. [Problems With Bundling Xvfb Into Application on StackOverflow](http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application) 3. [XQuartz Users FAQ](http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ) 5. [Xvfb Wikipedia entry](http://en.wikipedia.org/wiki/Xvfb) 5. [X-Wing art by Paul Harckham](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up) -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -45,11 +45,11 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb. ## Further Reading 0. [Xvfb + Firefox by Jordan Sissel](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html) 1. [Centos: Installing graphical X Window System](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html) 1. [Headless Cucumbers And Capybaras With Selenium And Hudson](http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/) 2. [Problems With Bundling Xvfb Into Application on StackOverflow](http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application) 3. [XQuartz Users FAQ](http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ) 4. [How to connect to remote X11 hosts from a Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616) 5. [Xvfb Wikipedia entry](http://en.wikipedia.org/wiki/Xvfb) 5. [X-Wing art by Paul Harckham](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up) -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -45,11 +45,11 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb. ## Further Reading 0. [Xvfb Firefox: Semicomplete.com](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html) 1. [Centos Installing Graphical X Window](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html) 1. [Headless Cucumbers And Capybaras With Selenium And Hudson](http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/) 2. [Problems With Bundling Xvfb Into Application on StackOverflow](http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application) 3. [XQuartz Users FAQ](http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ) 4. [How Connect Remote X11 Hosts Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616) 5. [Xvfb Wikipedia entry](http://en.wikipedia.org/wiki/Xvfb) 5. [X-Wing art by Paul Harckham](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up) -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,10 +36,12 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb. ### Installing XQuartz *XQuartz replaces the old X11 terminal that was part of Mac OS up until Mountain Lion.* If you have an older version of Mac OS X then X11 should already be installed, and you can mentally replace "XQuartz" with "X11" throughout these instructions. 0. Get XQuartz here. http://xquartz.macosforge.org/landing/ (The download will take a few minutes.) 1. Run the installer. 2. Log out and log back in. 3. That's it! XQuartz should now be installed. ## Further Reading -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,7 @@ How to install an XWindows terminal so that you can connect to your CentOS 6.3 h ### Running Selenium tests in the GUI via XWindows 4. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com` 5. On the remote host, type `export DISPLAY=localhost:10.0` 6. Start the Selenium server in the same terminal session, eg: `java -jar /opt/selenium-server-standalone.jar &` 7. Now simply run your tests and you will see Firefox start up and run in the GUI, just like on the destkop! @@ -34,7 +34,9 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb. 2. On the remote host, type `export DISPLAY=localhost:10.0` 3. On the remote host, type `firefox &` and after a long pause you should see Firefox start up in a GUI window. ### Installing XQuartz *XQuartz replaces the old X11 terminal that was part of Mac OS up until Mountain Lion.* 0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/ -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,25 +19,25 @@ Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests wi How to install an XWindows terminal so that you can connect to your CentOS 6.3 host and run your Selenium tests in a graphical Web browser. *This capability will be invaluable whenever you need to debug Selenium tests on one of your remote hosts.* ### Running Selenium tests in the GUI via XWindows 4. SSH to the remot host as described above. 5. On the remote host, type `export DISPLAY=localhost:10.0` 6. Start the Selenium server in the same terminal session, eg: `java -jar /opt/selenium-server-standalone.jar &` 7. Now simply run your tests and you will see Firefox start up and run in the GUI, just like on the destkop! Note that it's *much* slower to execute the tests under XWindows vs. Xvfb. ### Connecting to a remote XWindows host 1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com` 2. On the remote host, type `export DISPLAY=localhost:10.0` 3. On the remote host, type `firefox &` and after a long pause you should see Firefox start up in a GUI window. ### Installation 0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/ ## Further Reading -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 13 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,12 +19,23 @@ Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests wi How to install an XWindows terminal so that you can connect to your CentOS 6.3 host and run your Selenium tests in a graphical Web browser. *This capability will be invaluable whenever you need to debug Selenium tests on one of your remote hosts.* ### Installation 0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/ ### Connecting to a remote XWindows host 1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com` 2. On the remote host, type `export DISPLAY=localhost:10.0` 3. On the remote host, type `firefox &` and after a long pause you should see Firefox start up in a GUI window. ### Running Selenium tests in the GUI via XWindows 4. SSH to the remot host as described above. 5. On the remote host, type `export DISPLAY=localhost:10.0` 6. Start the Selenium server in the same terminal session, eg: `java -jar /opt/selenium-server-standalone.jar &` 7. Now simply run your tests and you will see Firefox start up and run in the GUI, just like on the destkop! Note that it's *much* slower to execute the tests under XWindows. -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,9 +30,11 @@ Note that it's *much* slower to execute the tests under XWindows. ## Further Reading 0. http://www.semicomplete.com/blog/geekery/xvfb-firefox.html 1. http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html 1. http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/ 2. http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application 3. http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ 4. http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616 5. http://en.wikipedia.org/wiki/Xvfb 5. http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ How to set up a Headless Selenium Testing environment for CentOS 6.3. Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox. 0. `sudo yum -y install firefox Xvfb libXfont Xorg` 0. `sudo yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` (installation takes a few minutes) 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` 3. Start the Selenium server, eg: `java -jar /opt/selenium-server-standalone.jar &` -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests wi 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` 3. Start the Selenium server, eg: `java -jar /opt/selenium-server-standalone.jar &` 4. Now start your Selenium tests. The Selenium server should spawn a headless Firefox instance and your tests should run successfully. ## On your Mac -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,13 +6,17 @@ How to set up a Headless Selenium Testing environment for CentOS 6.3. ## On your CentOS 6.3 host Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox. 0. `sudo yum -y install firefox Xvfb libXfont Xorg` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` ## On your Mac How to install an XWindows terminal so that you can connect to your CentOS 6.3 host and run your Selenium tests in a graphical Web browser. *This capability will be invaluable whenever you need to debug Selenium tests on one of your remote hosts.* 0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/ 1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com` -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,3 +29,4 @@ Note that it's *much* slower to execute the tests under XWindows. 2. http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application 3. http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ 4. http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616 5. http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # XWindows for Headless Selenium  -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,8 @@ # XWindows for Headless Selenium testing  How to set up a Headless Selenium Testing environment for CentOS 6.3. ## On your CentOS 6.3 host -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ## On your CentOS 6.3 host 0. `sudo yum -y install firefox Xvfb libXfont Xorg` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` @@ -18,3 +18,10 @@ Note that it's *much* slower to execute the tests under XWindows. ## Further Reading 0. http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html 1. http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/ 2. http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application 3. http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ 4. http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616 -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## On your CentOS 6.3 host 0. `sudo yum -y install firefox Xvfb libXfont Xorg` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## On your CentOS 6.3 host 0. `sudo yum -y install firefox Xvfb Xorg` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## On your CentOS 6.3 host 0. `sudo yum -y install firefox Xvfb Xorg xorg-x11-fonts-misc` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,6 @@ 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` ## On your Mac 0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed. -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 16 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,22 @@ # How to set up a Headless Selenium Testing environment for CentOS 6.3 ## On your CentOS 6.3 host 0. `sudo yum -y install firefox Xvfb Xorg` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html 1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &` 2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99` Note: If you intend to take screenshots, you can start Xvfb with 24 bit color enabled: `Xvfb :99 -ac -screen 0 1280x1024x24 &` ## On your Mac 0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/ 1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com` 2. On the remote host, type `export DISPLAY=localhost:10.0` 3. Type `firefox` and after a long pause you should see Firefox start up. 4. Now if you start the selenium server in this terminal session, you will see Firefox start up when you run your tests. Note that it's *much* slower to execute the tests under XWindows. -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,5 @@ ## On your CI slave 0. `sudo yum -y install firefox Xvfb Xorg` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html 1. If you intend to take screenshots, you can start Xvfb with 24 bit color enabled: `Xvfb :99 -ac -screen 0 1280x1024x24 &` -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ ## On your Mac 0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/ ## On your CI slave -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,5 @@ ## On your CI slave 0. `sudo yum -y install firefox Xvfb Xorg` 0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,8 @@ ## On your Mac 0. First you need X11. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download X11 here: http://xquartz.macosforge.org/landing/ ## On your CI slave 0. `sudo yum -y install firefox Xorg` -
Noah Sussman revised this gist
Jun 25, 2013 . 1 changed file with 2 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,2 @@ 0. First you need X11. If you have an older version of Mac OS X then X11 should already be installed. 0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download X11 here: http://xquartz.macosforge.org/landing/ -
Noah Sussman renamed this gist
Jun 25, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.
NewerOlder