[Wtr-general] Finding the name of objects
Lillis, Dara
dara.lillis at kiodex.com
Thu May 3 17:03:29 EDT 2007
In addition to the other suggestions, SpySmith is a useful tool for
getting this sort of information.
http://qualityforge.com/spysmith/
> On 5/3/07, Ken <forum-watir-users at openqa.org> wrote:
> > I just got started with this and am trying to write a simple script
> > to get
> my feet wet. I was following the googlesearch.rb case that is
> provided. My question is how do you find the name of the object that
> you want to perform an action with? For example:
> >
> > ie.text_field(:name, "q").set("pickaxe") # q is the name of the
> > search
> field
> >
> > How do you know that q is the name of the search field? I viewed
> > the
> source of the page and eventually found the field named q but it was
> not obvious or easy. It was so murky that if I didnt know already
> that the fields name was q I never would have found it. Is there a
> simple way to identify a list box, text field, radio button...etc?
> >
> > Thanks.
> > _______________________________________________
> > Wtr-general mailing list
> > Wtr-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
>
>
>
> ________________________________
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>
> ________________________________
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
More information about the Wtr-general
mailing list