I thought about this some a little more and I think I get what you are
saying.  However I need a way to get at the browser window before I
can capture the url.  Is there a way for Watir to give me a list of
all browser sessions current open.  Then couldn't I do something like
browser.url to get the url from the browser window of interest?

Thanks,
Bobby

On Mar 30, 10:17 am, Bret Pettichord <b...@pettichord.com> wrote:
> Have you considered saving your reference to the browser in a variable
> and using it?
>
> Bret
>
>
>
>
>
> Bobby Washington wrote:
> > Theurlis similar, but only up to a point.  The last part
> > 'TOKEN=5937dfd955519a57-4AA53C6C-1143-EBE5-767BAE115006BD65'  keeps
> >changing.  I will see if Watir can use only a portion of theURL
> > with Watir::IE.find(:url, //)
>
> > Thanks to everyone that has commented thus far.
>
> > Thanks,
>
> > Bobby Washington
>
> > Date: Sun, 29 Mar 2009 20:10:45 +0800
> > Subject: [wtr-general] Re: Attach tochangingURL
> > From: cjq....@gmail.com
> > To: watir-general@googlegroups.com
>
> > Are theURLthe same?
> > You may try: Watir::IE.find(:url, //)
>
> > Thanks.
> > Wesley Chen.
>
> > On Sun, Mar 29, 2009 at 8:05 PM, Bobby Washington
> > <bobwashing...@hotmail.com <mailto:bobwashing...@hotmail.com>> wrote:
>
> >     I thought about that, however the title is the same.  Sorry for
> >     not mentioning this before.
>
> >     Thanks,
>
> >     Bobby Washington
>
> >     Date: Sat, 28 Mar 2009 08:05:29 -0400
> >     Subject: [wtr-general] Re: Attach tochangingURL
> >     From: leighisle...@gmail.com <mailto:leighisle...@gmail.com>
> >     To: watir-general@googlegroups.com
> >     <mailto:watir-general@googlegroups.com>
>
> >     Anyway you can use the title to attach vs. theurl?
> >     Watir::IE.attach(title:, 'title of browser window')
>
> >     On Fri, Mar 27, 2009 at 9:32 PM, <bobwashing...@hotmail.com
> >     <mailto:bobwashing...@hotmail.com>> wrote:
>
> >         I'm still some what of a n00b with regards to Watir.  I have a
> >         web app
> >         that displays "new" browser windows.  I know that I can use
> >         Watir::IE.attach(url:, 'enterurl') to attach to a window.
> >          However
> >         the snippet of theurlbelow keepschanging.  Also hwnd keeps
> >        changing.  Is this because the site is https?
>
> >         TOKEN=5937dfd955519a57-4AA53C6C-1143-EBE5-767BAE115006BD65
>
> >     Hotmail® is up to 70% faster. Now good news travels really fast.
> >     Find out more.
> >     
> > <http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_0...>
>
> > Hotmail® is up to 70% faster. Now good news travels really fast. Find
> > out more.
> > <http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_0...>
>
> --
> Bret Pettichord
> CTO, WatirCraft LLC,www.watircraft.com
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
>
> Watir Training: Portland/Beaverton April 16-17www.watircraft.com/training- 
> Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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