Timeouts can be set using browser.timeout = <seconds>. When a command or page load takes longer the specified timeout a Capybara::TimeoutError will be raised. Calls to reset! will reset the timeout. You can also clear the timeout by setting it to -1. The timeout is implemented as a Command decorator.
reuse the existing manager and just clear its headers and cookies. This avoids repeatedly setting up the SIGNAL/SLOT callback stuff which is leading to unclosed pipes on Ubuntu, eventually causing "too many open files" errors in large test suites.