Watir & Javascript

A

Anand

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top