-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Get ChromeDriver's latest release in Robo task. #7345
Get ChromeDriver's latest release in Robo task. #7345
Conversation
682099f
to
ad5a31d
Compare
Codecov Report
@@ Coverage Diff @@
## hotfix-7.10.x #7345 +/- ##
================================================
Coverage ? 7.49%
================================================
Files ? 3741
Lines ? 387063
Branches ? 0
================================================
Hits ? 29025
Misses ? 358038
Partials ? 0 |
@Dillon-Brown Updated |
The Robo task will now automatically install the latest version of ChromeDriver instead of installing a static version. Also improves wording/grammar in various places.
a7cc2e4
to
95c4179
Compare
Rebased to squash the commits and to get Travis to re-run and hopefully not flake out this time. |
Can be used to delete and reinstall the web driver. Also added a bit more logging and documentation.
I added a |
} | ||
} else if ($opts['reinstall']) { | ||
$this->_deleteDir($basePath); | ||
if (mkdir($basePath, 0777, true) === false) { |
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.
if (mkdir($basePath, 0777, true) === false) { | |
if (mkdir($basePath, 0777, true) || is_dir($basePath)) { |
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.
@Dillon-Brown This caused problems because if mkdir
worked, the exception would be thrown. It'd also cause is_dir
to return true, which also causes the exception.
Co-Authored-By: Dillon Brown <[email protected]>
Updated 👍 |
Two notes:
|
Renames the commands to chromedriver:install and chromedriver:run.
Also movwes the Install command above the Run command.
I've split the command into two. Also, this can probably be squashed when merged. |
It seems I got pretty unlucky with flaky tests on this one :P Nothing I changed should effect the tests, and they match the flaky tests I've catalogued elsewhere. |
I think this is ready to go now. |
@Dillon-Brown any chance you could review? 😇 |
Assessed 👍 |
Description
This resolves one of the problems in #7344.
The Robo task will now automatically install the latest version of ChromeDriver instead of installing a static version.
Also improves wording/grammar in various places.
Motivation and Context
The ChromeDriver Robo task was stuck at an older version of ChromeDriver,
2.38
. This isn't compatible with the latest release of Chrome, so it doesn't work unless you're on an older version of Chrome.The
LATEST_RELEASE
URL system is based on how the webdrivers gem installs ChromeDriver, and also based on the ChromeDriver documentation.How To Test This
Install ChromeDriver with the Robo task (
./vendor/bin/robo chromedriver:install
) and then make sure it runs properly (./vendor/bin/robo chromedriver:run
). It should install ChromeDriver 75. You'll need to delete the existingbuild/tmp/webdrivers/
directory if you have one, or use./vendor/bin/robo chromedriver:install --reinstall
to delete the existing directory.Types of changes
Final checklist