Reputation: 743
I want to run parallel test and i have code something like this
for(int i = 0; i < size; i++){
new Thread(()->{
FirefoxProfile profile = new FirefoxProfile();
//fill profile
WebDriver driver = new FirefoxDriver(profile); <- problem here
//all my actions
driver.close();
}).start();
}
But the problem is that the drivers are not created and not open multiple browsers instantly as ChromeDriver , and work consistently. How to solve this problem ?
Upvotes: 0
Views: 3809