[Wtr-development] inspect

Bret Pettichord bret at pettichord.com
Wed Oct 13 18:22:30 EDT 2010


It looks like this:

#<Watir:TextField:0xc203520 located=true how={:text => 'file.txt', :class =>
'fooclass'} what=nil>

This would probably be better:

#<Watir:TextField:0xc203520 located=true specifiers={:text => 'file.txt',
:class_name => 'fooclass'}>

The problem, I think, is that we don't normalize the specifiers until we try
to locate the element, so this would only work for located elements. Also, I
think that we don't save the normalized specifiers.

We could refactor the code so that it inspected better....

Bret

On Wed, Oct 13, 2010 at 10:38 AM, Ethan <notethan at gmail.com> wrote:

> what would it look like for an element specified with multiple hash values,
> like container.text_field(:text => 'file.txt', :class => 'fooclass'}) ?
>
> On Wed, Oct 13, 2010 at 10:50, Željko Filipin <
> zeljko.filipin at wa-research.ch> wrote:
>
>> I am looking at output of inspect method for page elements and it looks
>> like this:
>>
>> #<Watir::Link:0xc203520 located=true how={:text=>"file.txt"} what=nil>
>>
>> 1) Instead of `how={:text=>"file.txt"} what=nil` there should be
>> `how=:text what="file.txt"` (I plan to fix it in the near future.)
>>
>> 2) what does `located=true` mean? I would delete it, but I guess somebody
>> needs it, since we have it.
>>
>> Željko
>> --
>> watir.com - community manager
>> watirpodcast.com - host
>> testingpodcast.com - audio podcasts on software testing. all of them
>>
>>
>> _______________________________________________
>> Wtr-development mailing list
>> Wtr-development at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wtr-development
>>
>
>
> _______________________________________________
> Wtr-development mailing list
> Wtr-development at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>



-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com

Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wtr-development/attachments/20101013/7118cb23/attachment.html>


More information about the Wtr-development mailing list