Željko ,Good catch!
But I type sf.button(:value=>"Enter",:index=>"1").click,get the
following:

irb(main):011:0> sf.button(:value=>"Enter",:index=>"1").click
ArgumentError: wrong number of arguments (1 for 2)
        from (irb):11:in `button'
        from (irb):11
        from :0

BWT, if I don't use the multiple attribute,get the same error:

irb(main):013:0> sf.button(:index=>"1").click
ArgumentError: wrong number of arguments (1 for 2)
        from (irb):13:in `button'
        from (irb):13
        from :0




On Sep 29, 6:42 pm, Željko Filipin <[email protected]>
wrote:
> On Tue, Sep 29, 2009 at 12:39 PM, yuping zhong <[email protected]>
> wrote:
>
> > irb(main):049:0> sf.button(:value=>"Enter",index=>"1").click
>
> You have forgot `:` in front of `index`:
>
> sf.button(:value=>"Enter",:index=>"1").click
>
> I am not sure that SafariWatir has multiple attribute support.
>
> Željko
> --http://watirpodcast.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to