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?

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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: stackoverflow.com/questions/212863/… Let me know if you find otherwise!
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...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.