WATIR object

25 views
Skip to first unread message

Rick

unread,
Mar 23, 2012, 5:25:25 PM3/23/12
to watir-...@googlegroups.com

In #<Watir::Table:0x54ed4b284686a4b2 located=false selector={:id=>"TblGeneralInformation", :tag_name=>"table"}>

Does the value of 'false' for located means that the table was not located?

Thanks.


Željko Filipin

unread,
Mar 25, 2012, 10:15:24 PM3/25/12
to watir-...@googlegroups.com
On Fri, Mar 23, 2012 at 4:25 PM, Rick <bell...@yahoo.com> wrote:
> In #<Watir::Table:0x54ed4b284686a4b2 located=false selector={:id=>"TblGeneralInformation", :tag_name=>"table"}>
> Does the value of 'false' for located means that the table was not located?

Show us the code that returns that.

As far as I know, Watir locates elements only when it uses them.

Željko
--
watir.com/book - author

Jarmo Pertman

unread,
Mar 26, 2012, 7:19:16 AM3/26/12
to Watir General
"located" is just an internal indicator if Watir (or Wati-WebDriver)
has already tried to locate element or not. If you haven't used any
methods on that element then located is always false. It will be set
to true as soon as you try to do anything with that element (e.g. it
is going to be searched for).

Jarmo

On Mar 26, 4:15 am, Željko Filipin <zeljko.fili...@gmail.com> wrote:

Rick

unread,
Mar 26, 2012, 9:45:29 PM3/26/12
to watir-...@googlegroups.com
thanks Jarmo for the clarification
Reply all
Reply to author
Forward
0 new messages