views:

51

answers:

2

I've been looking into this, as far as how I can run selenium browser instances in the background. I found some things about using a virtual GUI instance, or something like that, but it was all for Windows.

I'm using Ubuntu linux so I'm wondering what the easiest way would be to suppress the actual browser instances showing up for the user who started the selenium instances since I am threading like 25 of these, at the moment, and its kind of strange / annoying having all of them open.

Thanks for any advice.

+2  A: 

If you are using Firefox you can do *custom path/to/browser --display=:0. If you want to use other browsers and writing your tests in java you can use htmlunit and specify the capabilities. If you are using ruby you can use capybara in a similar way to htmlunit.

AutomatedTester
Try changing *firefox to *custom like I put above
AutomatedTester
Rick
Is it the case where I need to not have any other firefox windows open for this to work? I am using a django web app dashboard to activate selenium, at the moment, so would have to rework it a bit to be able to try it this way (having no existing firefox instances open)
Rick
A: 

There is a possibility to run it in a virtual window system (Xvfb).

You might find something interesting here: http://wiki.openqa.org/display/SRC/Selenium-RC+and+Continuous+Integration

There are samples at the bottom of the page.

We're going to try that out pretty soon!

Good luck!

JiPi