WATIR - Clicking img

T

Tracy Pyne

This is driving me up the wall.

I need to click on an apply button, however the Javascript has a number
of hidden buttons. You would think the developer would identify each one
uniquely but he hasn't. Each one is:

<input type="image" name="apply"
onClick="document.NewforOutputForm.mode.value='New';"
src="../images/apply_btn_1.gif"
OnMouseOver="this.src='../images/apply_btn_2.gif'"
OnMouseOut="this.src='../images/apply_btn_1.gif'" />

the only difference is the onClick bit.

Any ideas as to how I can click this damn button?

I've tried numerous things so any help would be appreciated.

Thanks
Tracy
 

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,264
Messages
2,571,323
Members
48,007
Latest member
Elvis60357

Latest Threads

Top