Skip to content

Commit

Permalink
Don't raise on error text because it could come from network events b…
Browse files Browse the repository at this point in the history
…ut a download is going through just fine
  • Loading branch information
nickhammond committed Oct 17, 2023
1 parent 020bd25 commit b2bc606
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ferrum/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ def go_to(url = nil)
options = { url: combine_url!(url) }
options.merge!(referrer: referrer) if referrer
response = command("Page.navigate", wait: GOTO_WAIT, **options)
error_text = response["errorText"]
raise StatusError.new(options[:url], "Request to #{options[:url]} failed (#{error_text})") if error_text

response["frameId"]
rescue TimeoutError
Expand Down

0 comments on commit b2bc606

Please sign in to comment.