[Wtr-general] Storing a redirected url as a variable
Charley Baker
charley.baker at gmail.com
Mon Oct 23 15:30:57 EDT 2006
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 <forum-watir-users at openqa.org> 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
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
More information about the Wtr-general
mailing list