src/Concerns/WaitsForElements.php
public function waitForLocation($path, $seconds = null)
    {
        $message = $this->formatTimeOutMessage('Waited %s seconds for location', $path);

        return $this->waitUntil("window.location.pathname == '{$path}'", $seconds, $message);
    }
public function waitForLocation($path, $seconds = null)
    {
        $message = $this->formatTimeOutMessage('Waited %s seconds for location', $path);

        return $this->waitUntil("window.location.pathname == '{$path}'", $seconds, $message);
    }
public function waitForLocation ( $ path , $ seconds = null ) { $ message = $ this -> formatTimeOutMessage ( 'Waited %s seconds for location' , $ path ) ; return $ this -> waitUntil ( "window.location.pathname == '{$path}'" , $ seconds , $ message ) ; }
Wait for the given location.

@param  string  $path
@param  int  $seconds
@return $this
@throws \Facebook\WebDriver\Exception\TimeOutException
Wait for the given location .