in reply to Clicking on a button without a form using Win32::IE::Mechanize

No use strict; no use warnings; is poor practice. Aside from this does IE show that there are any errors with the JavaScript that is running? Can you alter the function do display an 'alert' to see if it has been clicked?

Try $ie->click_button( name => 'logoff' ); in case the space character is causing an issue, this is just a guess.

Martin

Replies are listed 'Best First'.
Re^2: Clicking on a button without a form using Win32::IE::Mechanize
by venkatesan_G02 (Sexton) on Sep 21, 2009 at 10:35 UTC
    Hi,


    IE does not show any error. I tried using the name parameter but it's not working. I even tried other buttons in the fieldset class but of no use.

      Are other buttons or links with onclick="javascript:xxx('yyy');" working? I mean, not from this fieldset, but from the same page ...

      I suspect that javascript is not working.