in reply to Re^3: WWW::Mechanize::Chrome Instagram
in thread WWW::Mechanize::Chrome Instagram

Currently there is no way for the ->click method to avoid waiting on a HTTP response (or to recognize a standard way of no HTTP response). I'm planning to add a parameter that lets you basically send the click event and then continue, so you can manually wait for the event you want. But currently this is not conveniently solvable without resorting to ->eval of Javascript.

Replies are listed 'Best First'.
Re^5: WWW::Mechanize::Chrome Instagram ("intrapage" option)
by Corion (Patriarch) on Sep 04, 2019 at 09:27 UTC

    Actually, there already is an (undocumented) option that you can maybe use to avoid the forced waiting for an HTTP response. The option name is intrapage and it skips all that waiting. Actually determining whether all data has arrived is then up to you:

    $mech->click( { intrapage => 1, selector => '#thatButton', single => 1 + } );