Skip to content

Commit cea9179

Browse files
KarlKellKarlKell
authored andcommitted
changed strstr to strpos for optimization purposes.
1 parent 60182f5 commit cea9179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebDriverExpectedCondition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function ($driver) use ($title) {
5757
public static function inTitle($title) {
5858
return new WebDriverExpectedCondition(
5959
function ($driver) use ($title) {
60-
return strstr($driver->getTitle(),$title);
60+
return strpos($driver->getTitle(),$title);
6161
}
6262
);
6363
}

0 commit comments

Comments
 (0)