LearnBoost / soda

Selenium Node.JS adapter
http://labs.learnboost.com
464 stars 43 forks source link

Limit number of sessions #24

Closed daaku closed 9 years ago

daaku commented 13 years ago

Maybe this doesn't belong in the library itself, but is there any way to limit the number of concurrent browser sessions when running the tests locally? I'm running the tests using expresso (https://github.com/nshah/rell/blob/master/tests.js), but each test I add ends up creating a new browser instance in parallel. If such a feature doesn't exist, would you guys be open to a patch?

tj commented 13 years ago

yeah sure, definitely welcome to contribute, we dont have any way to limit right now

paulbjensen commented 10 years ago

Hi @daaku,

Did you try using browser.testComplete after running each test?

A limit might be a good idea - that way we can catch people when they spin up too many browser instances, and suggest that function to them.