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

when i use

$mech->sendkeys("\t");

I get error message

Odd name/value argument for subroutine at engine.pl line 71.

I try with string param

 $mech->sendkeys(string => "\t");

Not work, no effect, no select input

How use properly sendkeys to tab key?

Replies are listed 'Best First'.
Re^13: WWW::Mechanize::Chrome Instagram
by Corion (Patriarch) on Sep 10, 2019 at 11:57 UTC

    Whoops, yes, sorry. The correct usage is

    $mech->sendkeys( string => "Hello World" );

    ... so I think that maybe the following could work:

    $mech->sendkeys( string => "\t" );

    I don't know how many tabs you need to send, so maybe

    $mech->sendkeys( string => "\t\t" );

    ... works better.

      I don't have idea... i try with tab key and the problem still can't be solved, when i save screenshot with browser any element not selected, i try with many combination tab key, I don't know if this sending of the keys works at all

      Maybe have other idea?