Sure, here's a simple example:
require 'watir'
include Watir
ie = IE.start('http://www.gap.com')
redir = ie.url
puts redir
=> http://www.gap.com/browse/home.do
-Charley
On 10/23/06, Lennon <[EMAIL PROTECTED]> wrote:
> Is it possible to store a url that I have been redirected to by my webapp as
> a variable?
>
> e.g.,
>
> I might navigate to http://mywebapp.com/download ,
> and then get redirected to
> http://mywebapp.com/downloading?downloadid=65846
>
> I might want to do something with this paramater "downloadid" in the last
> url. Is it possible to store a url that I have been redirected to as a
> variable in a watir script?
>
> Thanks
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=4916&messageID=13650#13650
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general