-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[7.x] Fix ChromeDriverCommand for ChromeDriver 115+ #1043
Conversation
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* | ||
* @var string | ||
*/ | ||
protected $downloadUrl = 'https://chromedriver.storage.googleapis.com/%s/chromedriver_%s.zip'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URLs will be hardcoded based on usage to support different version.
'mac-intel' => 'mac64', | ||
'mac-arm' => 'mac_arm64', | ||
'win' => 'win32', | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to OperatingSystem
, use OperatingSystem::chromeDriverSlug($os)
.
'win' => [ | ||
'reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version', | ||
], | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to OperatingSystem
, use OperatingSystem::chromeVersionCommands($os)
.
'slug' => 'mac-arm64', | ||
'commands' => [ | ||
'/Applications/Google\ Chrome\ for\ Testing.app/Contents/MacOS/Google\ Chrome\ for\ Testing --version', | ||
'/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add support for Chrome for Testing.app
, available from version 113
: https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone-with-downloads.json
Signed-off-by: Mior Muhammad Zaki <[email protected]>
'sink' => $resource, | ||
]), array_filter([ | ||
'proxy' => $this->option('proxy'), | ||
]))->get($url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Laravel HTTP Client to speed up downloading ChromeDriver 115.
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
@@ -13,10 +13,11 @@ | |||
"php": "^8.0", | |||
"ext-json": "*", | |||
"ext-zip": "*", | |||
"php-webdriver/webdriver": "^1.9.0", | |||
"nesbot/carbon": "^2.0", | |||
"guzzlehttp/guzzle": "^7.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows to use HTTP Client.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mior!
* [7.x] Fix ChromeDriverCommand for ChromeDriver 115+ Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update OperatingSystemTest.php * Update ChromeDriverCommand.php * formatting * formatting --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
* [7.x] Fix ChromeDriverCommand for ChromeDriver 115+ Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update OperatingSystemTest.php * Update ChromeDriverCommand.php * formatting * formatting --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
--------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
--------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
fixes #1040