[🚀 Feature]: Cache Selenium Manager
See original GitHub issueFeature and motivation
Right now, Java is decompressing the binary and putting it in a temp file, and all the other bindings are using them directly from where they are stored from within the respective package.
One option is to have the bindings as part of getBinary()
:
- check to see if the manager exists at a designated location (
~/.cache/selenium/selenium-manager/mac64/selenium-manager
) - If it is get the version
- Compare the version to the “latest” (to start with we should keep this a constant with the selenium version being used)
- If it is the latest, use it, if it isn’t decompress/stream/move from package to the cache location
The advantages are:
- No copying to temp files
- It would be the first step for Selenium Manager Manager (#11358) if we went that route
- I can just copy test binaries into the system directory to test them instead of needing to go through bazel (hard in some language, and actually impossible in .NET right now)
Usage example
n/a
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
WebDriverManager - Boni García
WebDriverManager is an open-source Java library that carries out the management (i.e., download, setup, and maintenance) of the drivers required ...
Read more >Pulse · SeleniumHQ/selenium · GitHub
[🚀 Feature]: [Selenium Manager] User should have option to fallback to previous stable version of browser driver ... [🚀 Feature]: Cache Selenium Manager....
Read more >Toolbox for Selenium Tests in Java: WebDriverManager and ...
Abstract:This talk presents two open source tools designed to simplify the use of Selenium from Java code. On the one hand, ...
Read more >How To Use WebDriverManager In Selenium | LambdaTest
WebDriverManager checks the version of the browser installed on your machine and downloads the proper driver binaries into the local cache ( ~/ ......
Read more >15 BEST Android Cleaner Apps & Phone Optimizer (Dec 2022)
This malware removal app helps you to identify and remove junk, APKs, and residual files. Norton Clean. Features: It cleans and clears the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I consider it different things. For me, Selenium Manager is a tool that manages drivers, which means, in short, that it downloads drivers automatically. But Selenium Manager does not know the user’s intentions regarding the downloaded driver. Maybe they will be executed on the local machine, or perhaps they are intended for other uses (e.g., hosted and served on a server). In any case, Selenium Manager should be able to download drivers even for a different platform that the local host.
Regarding the
selenium-manager
binary, it is placed in that path by the binding, with the intention of running it. So there is only a possible binary, at least at this moment.Aha, I see what you’re suggesting now. That works. Thanks.