I'm starting with Perl and I'm trying to do a script that logs me out of a page (I already did the login one).
The idea is, I'm trying to use find_link function from WWW::Mechanize
(I also tried WWW::Mechanize::Firefox
) to find the logout link, but it's not working.
So, my question is:
is the event onmouseover avoiding that link to be found? I think WWW::Mechanize::Firefox
supports javascript but maybe that's not correct.
<a class="hb2" href="/goform/Logout?logout=Logout" onmouseover="(window.status='Logout');
return true">Logout</a>
Is there a way to do what I want? Any help or suggestions will be highly appreciated.
Apparently my MozRepl (needed to use WWW::Mechanize::Firefox) add-on was not well installed. @gangabass, @andy I checked the HTML and it seemed to be in the source. So @choroba I checked why WWW::Mechanize::Firefox was acting the same as WWW::Mechanize and I reinstalled the add-on. Then everything worked perfect. Thanks a lot to all of you for taking time to help me.