public function navigateTo($url, $reload = null)
    {
        $arguments = array(json_encode($url));

        if (null !== $reload) {
            $arguments[] = (bool) $reload ? 'true' : 'false';
        }

        $this->con->executeStep(sprintf('_sahi._navigateTo(%s)', implode(', ', $arguments)));
    }
public function navigateTo($url, $reload = null)
    {
        $arguments = array(json_encode($url));

        if (null !== $reload) {
            $arguments[] = (bool) $reload ? 'true' : 'false';
        }

        $this->con->executeStep(sprintf('_sahi._navigateTo(%s)', implode(', ', $arguments)));
    }
public function navigateTo ( $ url , $ reload = null ) { $ arguments = array ( json_encode ( $ url ) ) ; if ( null !== $ reload ) { $ arguments [ ] = ( bool ) $ reload ? 'true' : 'false' ; } $ this -> con -> executeStep ( sprintf ( '_sahi._navigateTo(%s)' , implode ( ', ' , $ arguments ) ) ) ; }
Navigates to the given URL.

@param string       $url    URL
@param boolean|null $reload force reload
Navigates to the given URL .