I'm using Selenium ChromeDriver in c# and am trying to launch multiple browser runs in parallel.
I can launch them in parallel alright but noted that they are running on multiple tabs in one browser.. can I somehow specify (in ChromeOptions perhaps) to run each test in a newly spawned browser?
This is my code :
[TestMethod]
public void TestInParallel()
{
Parallel.ForEach(scenarios, (scenario) =>
{
using (var driver = new ChromeDriver(devOptions))
{
foreach (var action in scenario.Acties)
{
driver.Navigate().GoToUrl(action.Url);
driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
}
}
}
});
}