The anchor tag has event handlers associated with it (e.g. onClick),
so you might need to trigger the event.  Check this out:

http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557

Example syntax: browser.link(:id, 'id').fire_event('onclick')

Hope it helps.

On Jun 23, 1:41 pm, Eric Mathiesen <[email protected]> wrote:
> Hello all,
>
> On
>
> <input id='customer.tracking_no::0' value='' name='customer.tracking_no'
> type='hidden'> <a onClick='root.handleOnClick(document, this);'
> id='search_customer.tracking_no::0::0'
> onMouseUp='root.handleOnMouseUp(document, this);' href='#'
> onMouseDown='root.handleOnMouseDown(document, this);'
> name='search_customer.tracking_no::0'><img width='16'
> src='/images/icon_magnfi.gif' height='16' border='0' class='cursorHand'
> id='default::searchrow::TEMPLATE' alt='Search'></a></nobr></td>
>
> when I attempt to access the gif by clicking (either image or button) or
> tabbing to and pressing enter I can audibly hear the click sound on the
> workstation during the script lines;
>
> puts "image click..."
> ie.frame("app_FinanceCenter").image(:id,
> "default::searchrow::TEMPLATE").click
> puts "button click..."
> ie.frame("app_FinanceCenter").button(:id,
> "default::searchrow::TEMPLATE").click
> puts "simulate tab to and enter..."
> ie.send_keys("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ 
> TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}")
>
> however no child is spawned blocking all the hidden fields from being
> tested.  Has anyone encountered a similar issue?  Any help would be greatly
> appreciated.  I have tried accessing this control with id, name, src (xpath)
> and all to no avail (but I hear the click!) ........
>
> Eric

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to