Reputation: 20906
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?
Upvotes: 8
Views: 1615
Reputation: 11395
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.
Upvotes: 1
Reputation: 297
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...
Upvotes: 0