protected function getAbsoluteUrlFor($uri)
    {
        $currentUrl = $this->getRunningClient()->getHistory()->current()->getUri();
        if (empty($uri) || $uri[0] === '#') {
            return $currentUrl;
        }
        return Uri::mergeUrls($currentUrl, $uri);
    }
protected function getAbsoluteUrlFor($uri)
    {
        $currentUrl = $this->getRunningClient()->getHistory()->current()->getUri();
        if (empty($uri) || $uri[0] === '#') {
            return $currentUrl;
        }
        return Uri::mergeUrls($currentUrl, $uri);
    }
protected function getAbsoluteUrlFor ( $ uri ) { $ currentUrl = $ this -> getRunningClient ( ) -> getHistory ( ) -> current ( ) -> getUri ( ) ; if ( empty ( $ uri ) || $ uri [ 0 ] === '#' ) { return $ currentUrl ; } return Uri :: mergeUrls ( $ currentUrl , $ uri ) ; }
Returns an absolute URL for the passed URI with the current URL
as the base path.

@param string $uri the absolute or relative URI
@return string the absolute URL
@throws \Codeception\Exception\TestRuntimeException if either the current
URL or the passed URI can't be parsed
Returns an absolute URL for the passed URI with the current URL as the base path .