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

Somebody knows how to get the root of the web application.
For example if I am in: the root maybe
can be or maybe is

I’m using watir / firewatir.

Thank you in advance.

I’m going to give you more information that can be useful for the

Firewatir is giving me the relative url and not the absolute as I need.
I’m using the next example:
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

Thank you in advance.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs