Doesn't work. See the following:
sf.button(:index,"1").click
NoMethodError: undefined method `-' for "1":String
from /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.3/./
safariwatir/scripter.rb:395:in `operate_by_index'
from /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.3/./
safariwatir.rb:130:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.3/./
safariwatir.rb:130:in `operate'
from /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.3/./
safariwatir/scripter.rb:161:in `highlight'
from /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.3/./
safariwatir.rb:47:in `click'
from (irb):16
from :0
On Sep 30, 4:10 pm, Željko Filipin <[email protected]>
wrote:
> On Wed, Sep 30, 2009 at 4:45 AM, yuping zhong <[email protected]>
> wrote:
>
> > irb(main):013:0> sf.button(:index=>"1").click
>
> Does this work?
>
> sf.button(:index, "1").click
>
> Željko
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---