venkatesan_G02 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,


I am trying to access a web page with JavaScript using Win32::IE:: Mechanize module. I stumbled upon a problematic situation wherein i need to access button on different class. This button is not associated with any <form> tag as well.


Below is the html code of the button i need to access.


<div class="barbutton" onMouseover="btnhighlight('subcasingbutton');" +onMouseout="btnreset('subcasingbutton');" id="subcasingbutton" onclic +k="javascript:subcasing(3639969,'Analysis in Progress');"> Subcasing </div>


I tried using " $ie->click_button(number=>7); " but its throwing an error - "Can't call method "length" on an undefined value".

Is there any possible way to resolve this issue?

Replies are listed 'Best First'.
Re: Accessing a button without a form name
by marto (Cardinal) on Sep 14, 2009 at 10:30 UTC
Re: Accessing a button without a form name
by Anonymous Monk on Sep 14, 2009 at 11:08 UTC