x-lours has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks

i need to complete a script using WWWW::Mechanize.

after loging, and a bit navigating, on a HTML page i have to use a "CTRL+L" and on a second page a "ALT+S" to get the pages i need (containing the informations i am looking for).

i can't follow any link whith WWW::Mechanize for this pages. The 'shortcut' is the only solution i see (because of Java inside the page...)

what did i miss in WWW:Mechanize for doing this or which module do i need to learn to make this call to the 'shorcut' ?

any help is welcome ;-)

my demand has evoluate :

this is the code for my shorcut

"<td    nowrap="nowrap"  id="mx60_0"  align="left"   valign="top" style="vertical-align:top;"><div aria-live="polite" id="mx59_holder" class="bc"><span ctype="label"  id="mx59"   tabindex="0"     targetid="mx59"  mxevent="click" accesskey='s' class="text powerwhite   anchor" style="display:block;;cursor:pointer;;;;" title="Fermer la session ALT+S"><img id='mx59_image' src='../webclient/skins-20140225-1537/tivoli13/images/btn_signout.gif' class='pwimg' border='0' alt="Fermer la session ALT+S" style='vertical-align:top;margin:0px;margin-left:3px;margin-right:3px;'/><span><span>Fermer la </span><span class='text hl hlak'>s</span><span>ession</span></span></span></div></td>"

how can i click on it ?

the dump_links() doesn't find any way to give a chance.

any help is appreciated

best reguards

Replies are listed 'Best First'.
Re: using shorcut in Mechanize
by choroba (Cardinal) on Mar 27, 2014 at 11:44 UTC
    Java and JavaScript are different languages. Are you sure the page runs Java?

    WWW::Mechanize does not support JavaScript (nor Java). You can try WWW::Mechanize::Firefox or WWW::Scripter.

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      thanks for reading.

      i am sure it is Java (and the pages also got some JavaScript but i can handle it)

      i will read for WWW::Mechanize::Firefox first ;-)

      i can't install any extension (mozrepl needed) so i pass to WWW::Scripter ...

        scripter doesn't deal with java, only attempts to deal with javascript ... its great but its no firefox
Re: using shorcut in Mechanize
by x-lours (Sexton) on Apr 01, 2014 at 13:10 UTC
    i found Win32::IEAutomation and it does exactly what i need.