lib/WebDriverExpectedCondition.php
public static function urlContains($url)
    {
        return new static(
            function (WebDriver $driver) use ($url) {
                return mb_strpos($driver->getCurrentURL(), $url) !== false;
            }
        );
    }
public static function urlContains($url)
    {
        return new static(
            function (WebDriver $driver) use ($url) {
                return mb_strpos($driver->getCurrentURL(), $url) !== false;
            }
        );
    }
public static function urlContains ( $ url ) { return new static ( function ( WebDriver $ driver ) use ( $ url ) { return mb_strpos ( $ driver -> getCurrentURL ( ) , $ url ) !== false ; } ) ; }
An expectation for checking substring of the URL of a page.

@param string $url The expected substring of the URL
@return static Condition returns whether current URL contains given string.
An expectation for checking substring of the URL of a page .