diff --git a/lib/Selenium/Remote/RemoteConnection.pm b/lib/Selenium/Remote/RemoteConnection.pm index 755d250a..e7d6b002 100644 --- a/lib/Selenium/Remote/RemoteConnection.pm +++ b/lib/Selenium/Remote/RemoteConnection.pm @@ -72,6 +72,14 @@ sub request { if ($url =~ m/^http/g) { $fullurl = $url; } + elsif ($url =~ m/^\//) { + # This is used when we get a 302 Redirect with a Location header. + $fullurl = + "http://" + . $self->remote_server_addr . ":" + . $self->port + . $url; + } elsif ($url =~ m/grid/g) { $fullurl = "http://"