I am trying to use Selenium to automate file uploads.
I have already written a small program with selenium-webdriver that works.
The problem is that you need to download thousands of files, I would like to run several instances of the browser at the same time in order to speed up automation. So I tried something like this
var i = 0;
while (i < 10) {
i++;
var driver = new webdriver.Builder()
.forBrowser('firefox')
.build();
}
I expected this to create 10 browser instances at once and do the automation at the same time.
But actually ... the above code will create a browser instance “one by one”, which means that it will not create another instance until the previous one ends.
I'v , , ...