Lines Matching refs:title
38 * An expectation for checking the title of a page.
40 * @param string $title The expected title, which must be an exact match.
41 * @return static Condition returns whether current page title equals given string.
43 public static function titleIs($title)
46 function (WebDriver $driver) use ($title) {
47 return $title === $driver->getTitle();
55 * @param string $title The expected substring of Title.
56 * @return static Condition returns whether current page title contains given string.
58 public static function titleContains($title)
61 function (WebDriver $driver) use ($title) {
62 return mb_strpos($driver->getTitle(), $title) !== false;
68 * An expectation for checking current page title matches the given regular expression.
71 * @return static Condition returns whether current page title matches the regular expression.