Good question, I'm actually somewhat curious as well as to the use case. :)

-c

On Mon, Oct 26, 2009 at 11:07 AM, Paul Rogers <paul.rog...@shaw.ca> wrote:

> can you explain why you need this?
>
> Paul
>
> On Mon, Oct 26, 2009 at 9:46 AM, Yuriy <yuriy.chaba...@gmail.com> wrote:
>
>>
>> Thanks a lot, Ethan!
>>
>> On Oct 26, 4:33 pm, Ethan <notet...@gmail.com> wrote:
>> > Unfortunately, there doesn't seem to be. I have run into this, and what
>> I
>> > ended up doing was to iterate up through the containers until I found
>> the
>> > browser. something along the lines of:
>> >
>> > browser=some_div
>> > while browser && !browser.is_a?(Watir::IE)
>> >   browser=browser.instance_variable_get('@container')
>> > end
>> >
>> > pretty ugly.
>> >
>> > On Mon, Oct 26, 2009 at 08:30, Yuriy <yuriy.chaba...@gmail.com> wrote:
>> >
>> > > Hi all,
>> > > is there any way I can get browser instance from inside an element?
>> > > Here is what I mean by that:
>> > > ie_instance = IE.new
>> > > some_div = ie.div(:any, 'any')
>> > > some_div.a_method_to_get_browser_instance  # <--- this is an assumed
>> > > method which would return the ie_instance
>> >
>> > > Thanks.
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to