8

Is it possible to run together multiple instance of selenium browsers and each one will work for themselve which will increase speed?

i can run one like:

ISelenium selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost/");
selenium.Start();

but how to open more of them and open page inside each one?

Yi Zeng
  • 32,020
  • 13
  • 97
  • 125
senzacionale
  • 20,448
  • 67
  • 204
  • 316

2 Answers2

1

Check Selenium Grid:

(..) Stop waiting hours to get the results of your web acceptance builds! Selenium Grid transparently distribute your tests on multiple machines so that you can run your tests in parallel, (..) this will dramatically speeds up in-browser web testing

Getting started it's very easy (http://selenium-grid.seleniumhq.org/get_started.html) and demo site is present too.

Michael Freidgeim
  • 26,542
  • 16
  • 152
  • 170
boj
  • 10,935
  • 5
  • 38
  • 57
  • apparently you also have to use PUnit (for NUnit, or a different parallel test runner if you're using a different framework) to get the tests to run in parallel, even when you're using Grid: http://stackoverflow.com/questions/212863/how-can-i-run-nunitselenium-grid-tests-in-parallel Let me know if you find otherwise! – zcrar70 Aug 02 '11 at 23:04
  • See also http://stackoverflow.com/questions/3313163/how-can-i-run-nunit-tests-in-parallel – zcrar70 Aug 04 '11 at 13:02
0

In your case:

ISelenium selenium1 = new DefaultSelenium("localhost", 4444, "*chrome",    "http://localhost/");
selenium1.Start();
selenium1...
ISelenium selenium2 = new DefaultSelenium("localhost", 4444, "*chrome",    "http://localhost/");
selenium2.Start();
selenium2...
Roman Asanov
  • 287
  • 2
  • 6