File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ class ChromeDriverCommand extends Command
2929 protected $ description = 'Install the ChromeDriver binary ' ;
3030
3131 /**
32- * URL to the home page .
32+ * URL to the latest stable release version .
3333 *
3434 * @var string
3535 */
36- protected $ homeUrl = 'http ://chromedriver.chromium.org/home ' ;
36+ protected $ latestVersionUrl = 'https ://chromedriver.storage.googleapis.com/LATEST_RELEASE ' ;
3737
3838 /**
39- * URL to the latest release version.
39+ * URL to the latest release version for a major Chrome version .
4040 *
4141 * @var string
4242 */
@@ -165,11 +165,7 @@ protected function version()
165165 */
166166 protected function latestVersion ()
167167 {
168- $ home = $ this ->getUrl ($ this ->homeUrl );
169-
170- preg_match ('/release:.*?\?path=([\d.]+)/ ' , $ home , $ matches );
171-
172- return $ matches [1 ];
168+ return trim (file_get_contents ($ this ->latestVersionUrl ));
173169 }
174170
175171 /**
You can’t perform that action at this time.
0 commit comments