Comments (4)
Digged a bit and found commands.properties
:
command.chrome.linux.01=google-chrome --version
this is loaded in VersionDetector
and somewhere prepended with /usr/bin
.
This should be customizable.
Any suggestion about how to override the default behavior?
from webdrivermanager.
You can use the method browserVersionDetectionCommand()
to use a custom path for your browser
WebDriverManager.chromedriver().browserVersionDetectionCommand("/path/to/browser --version").setup();
See example.
from webdrivermanager.
Followed your suggestion and added somewhere in my code:
webDriverManager.browserVersionDetectionCommand(
"flatpak run com.google.Chrome");
Tested it in a bash shell as flatpak run com.google.Chrome --version
and it returns:
[0607/232449.452209:WARNING:chrome_main_linux.cc(80)] Read channel stable from /app/extra/CHROME_VERSION_EXTRA
Google Chrome 125.0.6422.141
Didn't work :( The logs:
WebDriverManager - Using WebDriverManager 5.7.0
Shell - Running command on the shell: ['flatpak run, com.google.Chrome']
Shell - There was a problem executing command <flatpak run com.google.Chrome> on the shell: Cannot run program "flatpak run" (in directory "."): error=2, No such file or directory
from webdrivermanager.
I believe the command should contain the --version
:
webDriverManager.browserVersionDetectionCommand("flatpak run com.google.Chrome --version");
from webdrivermanager.
Related Issues (20)
- WebDriverManger Couldn't get actual chrome driver for Chrome for testing browser. HOT 2
- java.lang.NumberFormatException: For input string: "public" HOT 1
- mirror repository for chrome driver version later than 115 not work HOT 2
- org.bouncycastle:bcprov-jdk18on Observable Timing Discrepancy VULNERABILITY HOT 2
- Error running Firefox headless HOT 2
- Facing issue when executing jar in jenkins pipeline HOT 5
- Exception when creating driver manager for latest Chrome version
- Session not created: This version of ChromeDriver only supports Chrome version 114 HOT 7
- Latest Driver download not downloading proper driver for specific OS HOT 1
- Problems unpacking geckodriver on Mac/Linux HOT 2
- The new instance of create() has the same windowhandle ID. HOT 2
- org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure HOT 1
- io.github.bonigarcia.wdm.config.WebDriverManagerException: org.apache.hc.core5.http.ConnectionClosedException: Premature end of Content-Length delimited message body HOT 1
- Architecture filter is failing with latest chromedriver version HOT 2
- HTTP 404 when downloading microsoft edgedriver HOT 7
- ChromeDriverManager not returning the correct path of the driver binary
- OSError: [Errno 8] Exec format error: '/Users/engineer/.wdm/drivers/chromedriver/mac64/127.0.6533.72/chromedriver-mac-x64/THIRD_PARTY_NOTICES.chromedriver' HOT 1
- No proper candidate URL to download geckodriver 0.35.0 HOT 3
- Selenium -Java Chrome driver issue Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: cannot connect to chrome at 127.0.0.1:9111 from chrome not reachable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdrivermanager.