Skip to content

Commit

Permalink
fix: Adjust Chrome browser timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvench committed Mar 3, 2025
1 parent 0fbde93 commit fd4a604
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
class Browser
include Singleton

TIMEOUT = 5 # seconds
PAGE_TIMEOUT = 5 # seconds
PROCESS_TIMEOUT = 20 # seconds
WINDOW_SIZE = [1366, 768] # width, height

HEADERS = {
Expand Down Expand Up @@ -69,8 +70,9 @@ def settings
@settings ||= begin
{
headless: :new,
timeout: TIMEOUT,
timeout: PAGE_TIMEOUT,
window_size: WINDOW_SIZE,
process_timeout: PROCESS_TIMEOUT,
extensions: [Rails.root.join("vendor/javascript/stealth.min.js")],
browser_options: {
"disable-blink-features": "AutomationControlled",
Expand Down

0 comments on commit fd4a604

Please sign in to comment.