From 2e0404519411dc5c36e11c4dfc083a468c55441f Mon Sep 17 00:00:00 2001 From: "Ben Sheldon [he/him]" Date: Wed, 21 Oct 2026 12:18:48 -0700 Subject: [PATCH] docs: add :keepalive_interval example for remote browsers --- docs/2-customization.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/2-customization.md b/docs/2-customization.md index 85dba3b..dd7e37f 100644 --- a/docs/2-customization.md +++ b/docs/2-customization.md @@ -59,6 +59,9 @@ Capybara::Cuprite::Driver.new(app, timeout: 15, process_timeout: 30) # Connect to a remote browser Capybara::Cuprite::Driver.new(app, url: "http://chrome:3333") +# Keep a remote browser's connection active through a proxy that drops idle connections +Capybara::Cuprite::Driver.new(app, url: "http://chrome:3333", timeout: 120, keepalive_interval: 25) + # Leave the window size to Chrome, e.g. to start maximized in headful mode Capybara::Cuprite::Driver.new(app, headless: false, window_size: nil, browser_options: { "start-maximized" => nil })