Skip to content

Commit

Permalink
Fix truncated Chrome WS URL that results in Ferrum::DeadBrowserError (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbeaudoin authored Jan 18, 2023
1 parent a71634d commit e2340b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ferrum/browser/process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def parse_ws_url(read_io, timeout)
output = ""
start = Utils::ElapsedTime.monotonic_time
max_time = start + timeout
regexp = %r{DevTools listening on (ws://.*)}
regexp = %r{DevTools listening on (ws://.*[a-zA-Z0-9-]{36})}
while (now = Utils::ElapsedTime.monotonic_time) < max_time
begin
output += read_io.read_nonblock(512)
Expand Down

0 comments on commit e2340b3

Please sign in to comment.