I'm having trouble clicking an image that fires javascript. The
button has no ID or NAME tag, so I have to reference it by SRC.
The source for the button is:
<tr>
<td class="vSpace3"></td>
</tr>
<tr>
<td colspan="2"></td>
<td><a
href="javascript:document.__main.__cmdfunc.value='launchQuote
()';document.__main.submit();"><img src="images/startquotebutton.gif"/
></a></td>
</tr>
<tr>
<td height="40px"></td>
</tr>
I've tried the following:
ie.button(:src, /startquotebutton/).click #this usually works
ie.cell(:src, /startquotebutton/).fire_event('onclick')
ie.link(:src, "startquotebutton.gif").click
All I get is a generic error code: ">Exit code: 1"
I'm assuming that we can't find the src reference - but I'm at a loss
on this one....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---