[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

how to get the root of a web application with watir/firewati

Mario Ruiz

12/4/2007 1:19:00 PM

Hi,
Somebody knows how to get the root of the web application.
For example if I am in: www.elmundo.es/ppe/sskk/aaa.htm the root maybe
can be www.elmundo.es/ppe/ or maybe is www.elmundo.es/

I'm using watir / firewatir.

Thank you in advance.
--
Posted via http://www.ruby-....

1 Answer

Mario Ruiz

12/5/2007 9:56:00 AM

0

I'm going to give you more information that can be useful for the
matter:


Firewatir is giving me the relative url and not the absolute as I need.
I'm using the next example:
links=ff.links()
hrefLinks=Array.new()
a=0
links.each {|link| hrefLinks[a]= link.href; a=a+1}

But I'm storing only the relative url and I need to store the absolute
one.

Thank you in advance.
--
Posted via http://www.ruby-....