[wtr-general] Re: How to get browser instance from inside an element?

2009-10-28 Thread Yuriy
Ethan, Bret thanks both of you guys. On Oct 27, 4:51 pm, Bret Pettichord b...@pettichord.com wrote: There is a page_container instance variable that will contain a reference to the browser, or the frame, if the object is in a frame. Bret Yuriy wrote: I have a custom click method in

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Ethan
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)

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Yuriy
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

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Paul Rogers
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

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Ethan
For me, I was working around problems I was having with FileField#set in IE8, and I ended up just rewriting the #set method. For my implementation, I needed the hWnd of the FileField's browser, so I just iterated up through the @containers to find the browser. -Ethan On Mon, Oct 26, 2009 at

[wtr-general] Re: How to get browser instance from inside an element?

2009-10-26 Thread Charley Baker
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!