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. |
Beta Was this translation helpful? Give feedback.
-
@route Sorry if that wasn't clear. I think that a Per the documentation an
|
Beta Was this translation helpful? Give feedback.
-
I see, the reason behind that |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm wondering if there's context behind only raising a
StatusError
for 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#error
to assess a successful top frame navigation.Beta Was this translation helpful? Give feedback.
All reactions