Skip to content

Commit e2340b3

Browse files
Fix truncated Chrome WS URL that results in Ferrum::DeadBrowserError (#327)
1 parent a71634d commit e2340b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ferrum/browser/process.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def parse_ws_url(read_io, timeout)
137137
output = ""
138138
start = Utils::ElapsedTime.monotonic_time
139139
max_time = start + timeout
140-
regexp = %r{DevTools listening on (ws://.*)}
140+
regexp = %r{DevTools listening on (ws://.*[a-zA-Z0-9-]{36})}
141141
while (now = Utils::ElapsedTime.monotonic_time) < max_time
142142
begin
143143
output += read_io.read_nonblock(512)

0 commit comments

Comments
 (0)