Skip to content

Commit

Permalink
Support ChromeDriver 127+
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Aug 19, 2024
1 parent 73a19b4 commit 34a5e26
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,15 @@ protected function extract($version, $archive)

$zip->extractTo($this->directory);

$binary = $zip->getNameIndex(version_compare($version, '115.0', '<') ? 0 : 1);
if (version_compare($version, '115.0', '<')) {
$index = 0;
} elseif (version_compare($version, '127.0', '<')) {
$index = 1;
} else {
$index = 2;
}

$binary = $zip->getNameIndex($index);

$zip->close();

Expand Down

1 comment on commit 34a5e26

@u01jmg3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you saw this PR (https://github.com/laravel/dusk/pull/1115/files) but it provides support for any future archive structure.

Please sign in to comment.