Question about main frame navigation raising Ferrum::StatusError
#340
Replies: 3 comments
|
Don't quite understand what are you proposing instead between the lines? What seems to be incorrect now and what the solution is. |
|
@route Sorry if that wasn't clear. I think that a Per the documentation an |
|
I see, the reason behind that |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm wondering if there's context behind only raising a
StatusErrorfor a subset of errors when navigating the top frame?ferrum/lib/ferrum/page.rb
Lines 113 to 124 in 0cab51d
Unless mistaken as only these 5 errors are handled, it implies that we need to inspect the network traffic to know whether navigation was successful. Should there be a lot of traffic, that is a bit cumbersome as the network traffic needs to be filtered to properly identify the main frame request (including its redirection) and then finally check if it has a
Exchange#errorto assess a successful top frame navigation.All reactions