From: Arti Singh Date: 2009-08-12T23:47:30+09:00 Subject: Re: Can URI retrieve the URL of a webpage when its open? __ __ wrote: >> Is there any way to get the URL of a webpage once it is opened? > > require 'watir' > w = Watir::IE.new > u = 'http://somesitewithredirection.com' > w.goto(u) > > puts w.document.URL This bit won't work since I dont know the URL,its dynamic. I am attaching to the window because I know the title and then I get the window handle and I interact with the window. but you have given me an idea cause I can get the URL after I have the handle. Thanks!!!! Arti -- Posted via http://www.ruby-forum.com/.