Skip to content

docs: add :keepalive_interval example for remote browsers - #349

Open
bensheldon wants to merge 1 commit into
rubycdp:mainfrom
bensheldon:docs/keepalive-interval
Open

bensheldon wants to merge 1 commit into
rubycdp:mainfrom
bensheldon:docs/keepalive-interval

Conversation

@bensheldon

Copy link
Copy Markdown

Follows rubycdp/ferrum#671, which adds a :keepalive_interval option to keep the CDP connection active during long waits. Cuprite passes driver options straight to Ferrum, so the option works with no code change. This adds an example for connecting to a remote browser through a proxy that drops idle connections:

Capybara::Cuprite::Driver.new(app, url: "http://chrome:3333", timeout: 120, keepalive_interval: 25)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant