Try this code to see awayliable properties for spans on the page :

ie.spans.each do |span|
span.flash
span.to_s
end

Also this code works for me:

ie.span(:text, 'Hello').flash

If those spans are in the frame you possibly will need additional code to
use.

I suggest to use xpath to locate elements with same properties.
What effect do you want to achieve clicking on the span ?

2011/2/17 mike_sukhi <sukhija...@gmail.com>

>
>
> The code is:
>
> <td class="connect_widget_vertical_center
> connect_widget_button_cell"><div class="connect_button_slider"><div
> class="connect_button_container"><a class="connect_widget_text_button
> clearfix time_button_no_time"><span class="time">Hello</span></a></
> div></div></td>
>
> ####Hello appears 10 times on the page..with same code:
> I have tried with the following option but no success.
>
> $IE.span(:class =>'time', :text =>'Hello').click
> or
> $IE.span(:class =>'time', :index=>7).click
>
> still no sucess ...
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com<http://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com>
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to