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

My guess is that you need to simulate typing to get the form to respond properly.

Replies are listed 'Best First'.
Re^6: WWW::Mechanize::Chrome Instagram
by damian1 (Novice) on Sep 08, 2019 at 12:56 UTC

    Can you show my example? I find function sendkeys() but i don't find example uses for two input, and i don't find enter key code

      To enter input into any input field, focus the input field by ->click()ing it, and then send keys.

      Also, I assume that you can switch input fields by using the \t tab key.

        I try but not work, it still doesn't detect and the button is blocked, in addition as I display the content after filling it is empty

        $mech->click({xpath => '//input[@name="username"]', single => +1 }); $mech->sendkeys( string => $user ); $mech->click({xpath => '//input[@name="password"]', single => +1 }); $mech->sendkeys( string => $pass ); $mech->sleep(1); $mech->click({intrapage => 1, text => 'Log In', single => 1 }) +; $mech->sleep(2); print $mech->content;