Skip to content

Commit

Permalink
Increase :timeout and :process_timeout
Browse files Browse the repository at this point in the history
The timeout value was extended due to occasional CI failures.
Addressing the following error messages:

```
Ferrum::TimeoutError: Timed out waiting for response. It's possible that this happened because something took a very long time (for example a page load was slow). If so, setting the :timeout option to a higher value might help.
```

```
Ferrum::ProcessTimeoutError: Browser did not produce websocket url within 10 seconds, try to increase `:process_timeout`. See https://github.com/rubycdp/ferrum#customization
```
  • Loading branch information
mishina2228 authored and glebm committed Oct 23, 2022
1 parent 8db6ce7 commit 4d16b32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

Capybara.register_driver :cuprite do |app|
options = {
window_size: [1280, 1024]
window_size: [1280, 1024],
timeout: 15,
process_timeout: 15
}
options[:browser_path] = browser_path if browser_path
Capybara::Cuprite::Driver.new(app, options)
Expand All @@ -38,4 +40,3 @@
config.server_port = 7000
config.default_max_wait_time = 10
end

0 comments on commit 4d16b32

Please sign in to comment.