question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🚀 Feature]: Cache Selenium Manager

See original GitHub issue

Feature 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():

  1. check to see if the manager exists at a designated location (~/.cache/selenium/selenium-manager/mac64/selenium-manager)
  2. If it is get the version
  3. Compare the version to the “latest” (to start with we should keep this a constant with the selenium version being used)
  4. If it is the latest, use it, if it isn’t decompress/stream/move from package to the cache location

The advantages are:

  1. No copying to temp files
  2. It would be the first step for Selenium Manager Manager (#11358) if we went that route
  3. 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:open
  • Created 10 months ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
bonigarciacommented, Dec 7, 2022

How is it more unique than the drivers? Seems they should be treated the same, either way?

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.

0reactions
titusfortnercommented, Dec 8, 2022

Aha, I see what you’re suggesting now. That works. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found