I see that wait param passed in go_to method and some methods related to mouse events.
So basically it means if I click on element and navigation happens after down event, the click will fail if navigation doesn't finish within timeout despite the click was successful and led to navigation.
Shouldn't be this "wait for navigation" logic controlled by client and not included in mouse class?
I'd like to understand why this logic is present here:
https://github.com/rubycdp/ferrum/blob/5271866198dad526ca898344459f1a5afa2efafb/lib/ferrum/page.rb#L344-L353
I see that
wait
param passed ingo_to
method and some methods related to mouse events.So basically it means if I click on element and navigation happens after
down
event, the click will fail if navigation doesn't finish within timeout despite the click was successful and led to navigation.Shouldn't be this "wait for navigation" logic controlled by client and not included in mouse class?