Hello everyone!
I'm working on a setup of Grid2 + Capybara + Cucumber + Selenium Remote
Webdriver.
According to the Grid2 Docs: http://code.google.com/p/selenium/wiki/Grid2
If your tests are running in parallel, *make sure that each thread
> deallocates its webdriver resource independently of any other tests running
> on other threads.* Starting 1 browser per thread at the start of the
> test-run and deallocating all browsers at the end is *not* a good idea.
> (If one test-case decides to consume abnormal amounts of time you may get
> timeouts on all the other tests because they're waiting for the slow test.
> This can be very confusing)
*How can I deallocate the remote selenium webdriver resources using
Capybara?*
I guess it should be some code inside an *After Scenario hook*, but not
sure. I've tried playing with Capybara.page.driver , searching for a stop
or quit method, but couldn't find out a suitable method to accomplish this.
Any help would be really appreciated!
Regards! Rodrigo.