[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Watir & Javascript

Anand

5/18/2006 8:10:00 AM

Hi,

How can I use Watir to execute javascript fuctions? For example if I
have code like the follwing:
<img src="ccc.jpg" onClick="helloWorld();">

One way to exceute the function would to locate the image and simulate
a click (thats easy). But how do I use Watir to call the helloWorld()
function directly.

Thanks,
Anand.

1 Answer

bpettichord

5/20/2006 3:28:00 AM

0

ie.document.parentwindow.execscript("helloWorld();")