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 <[email protected]> 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 <
> [email protected]> 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
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/wtr-development
>>
>
>
> _______________________________________________
> Wtr-development mailing list
> [email protected]
> 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
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development