selenium: [🐛 Bug]: Unable to download in offline mode when network is Online
What happened?
while booting the application the application does not load the IE, safari which i know is not present in my local system but the prompt says it also tried downloading it but it not able to discover it in offline mode Is this a bug ?
I have given initial debug log with fine level hope this helps in debug.
How can we reproduce the issue?
Java -jar selenium-server-4.11.0.jar standalone --log-level FINE --log ./trace.log
Relevant log output
21:40:52.547 DEBUG [SeleniumManager.lambda$runCommand$1] - Checking chromedriver in PATH
21:40:52.547 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: chromedriver --version
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "ChromeDriver 115.0.5790.170 (cc0d30c2ca5577520c8646671513241faa0bc105-refs/branch-heads/5790@{#1923})"
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: where chromedriver
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "C:\\WebDriver\\chromedriver.exe"
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Found chromedriver 115.0.5790.170 in PATH: C:\WebDriver\chromedriver.exe
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - chrome detected at C:\Program Files\Google\Chrome\Application\chrome.exe
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Using shell command to find out chrome version
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: wmic datafile where name='C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe' get Version /value
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "\r\r\n\r\r\nVersion=115.0.5790.170\r\r\n\r\r\n\r\r\n\r"
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Detected browser: chrome 115.0.5790.170
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Required driver: chromedriver 115.0.5790.170
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Driver path: C:\WebDriver\chromedriver.exe
21:40:52.548 DEBUG [SeleniumManager.lambda$runCommand$1] - Browser path: C:\Program Files\Google\Chrome\Application\chrome.exe
21:40:52.549 DEBUG [SeleniumManager.getDriverPath] - Using driver at location: C:\WebDriver\chromedriver.exe, browser at location C:\Program Files\Google\Chrome\Application\chrome.exe
21:40:52.549 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe
21:40:52.549 DEBUG [SeleniumManager.runCommand] - Executing Process: [C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe, --browser, MicrosoftEdge, --output, json, --debug, --offline]
21:40:52.752 DEBUG [SeleniumManager.lambda$runCommand$1] - Checking msedgedriver in PATH
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: msedgedriver --version
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "Microsoft Edge WebDriver 115.0.1901.188 (b51b39339c49c4dc7c61b77f8b61420ca0ab7b68)"
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: where msedgedriver
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "C:\\WebDriver\\msedgedriver.exe"
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Found msedgedriver 115.0.1901.188 in PATH: C:\WebDriver\msedgedriver.exe
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - edge detected at C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Using shell command to find out edge version
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: wmic datafile where name='C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe' get Version /value
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "\r\r\n\r\r\nVersion=115.0.1901.188\r\r\n\r\r\n\r\r\n\r"
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Detected browser: edge 115.0.1901.188
21:40:52.753 WARN [SeleniumManager.lambda$runCommand$1] - Exception trying to discover msedgedriver version: Unable to discover proper msedgedriver version in offline mode
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Driver path: C:\WebDriver\msedgedriver.exe
21:40:52.753 DEBUG [SeleniumManager.lambda$runCommand$1] - Browser path: C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
21:40:52.753 DEBUG [SeleniumManager.getDriverPath] - Using driver at location: C:\WebDriver\msedgedriver.exe, browser at location C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
21:40:52.755 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe
21:40:52.755 DEBUG [SeleniumManager.runCommand] - Executing Process: [C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe, --browser, firefox, --output, json, --debug, --offline]
21:40:52.954 DEBUG [SeleniumManager.lambda$runCommand$1] - Checking geckodriver in PATH
21:40:52.954 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: geckodriver --version
21:40:52.954 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "geckodriver 0.33.0 (a80e5fd61076 2023-04-02 18:31 +0000)\n\nThe source code of this program is available from\ntesting/geckodriver in https://hg.mozilla.org/mozilla-central.\n\nThis program is subject to the terms of the Mozilla Public License 2.0.\nYou can obtain a copy of the license at https://mozilla.org/MPL/2.0/."
21:40:52.954 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: where geckodriver
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "C:\\WebDriver\\geckodriver.exe"
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Found geckodriver 0.33.0 in PATH: C:\WebDriver\geckodriver.exe
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - firefox detected at C:\Program Files\Mozilla Firefox\firefox.exe
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Using shell command to find out firefox version
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: wmic datafile where name='C:\\Program Files\\Mozilla Firefox\\firefox.exe' get Version /value
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: "\r\r\n\r\r\nVersion=116.0.1.8615\r\r\n\r\r\n\r\r\n\r"
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Detected browser: firefox 116.0.1.8615
21:40:52.955 WARN [SeleniumManager.lambda$runCommand$1] - Exception trying to discover geckodriver version: Unable to discover proper geckodriver version in offline mode
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Driver path: C:\WebDriver\geckodriver.exe
21:40:52.955 DEBUG [SeleniumManager.lambda$runCommand$1] - Browser path: C:\Program Files\Mozilla Firefox\firefox.exe
21:40:52.955 DEBUG [SeleniumManager.getDriverPath] - Using driver at location: C:\WebDriver\geckodriver.exe, browser at location C:\Program Files\Mozilla Firefox\firefox.exe
21:40:52.956 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe
21:40:52.956 DEBUG [SeleniumManager.runCommand] - Executing Process: [C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe, --browser, internet explorer, --output, json, --debug, --offline]
21:40:53.059 DEBUG [SeleniumManager.lambda$runCommand$1] - Checking IEDriverServer in PATH
21:40:53.059 DEBUG [SeleniumManager.lambda$runCommand$1] - Running command: IEDriverServer --version
21:40:53.059 DEBUG [SeleniumManager.lambda$runCommand$1] - Output: ""
21:40:53.059 DEBUG [SeleniumManager.lambda$runCommand$1] - IEDriverServer not found in PATH
21:40:53.059 DEBUG [SeleniumManager.lambda$runCommand$1] - iexplorer has not been discovered in the system
21:40:53.059 WARN [SeleniumManager.lambda$runCommand$1] - Unable to discover proper IEDriverServer version in offline mode
21:40:53.059 DEBUG [SeleniumManager.getDriverPath] - Using driver at location: , browser at location
21:40:53.061 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe
21:40:53.061 DEBUG [SeleniumManager.runCommand] - Executing Process: [C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe, --browser, safari, --output, json, --debug, --offline]
21:40:53.145 DEBUG [SeleniumManager.lambda$runCommand$1] - safari detected at C:\Program Files
21:40:53.146 DEBUG [SeleniumManager.lambda$runCommand$1] - safari has not been discovered in the system
21:40:53.146 WARN [SeleniumManager.lambda$runCommand$1] - The version of safari cannot be detected. Trying with latest driver version
21:40:53.146 DEBUG [SeleniumManager.lambda$runCommand$1] - Required driver: safaridriver (local)
21:40:53.146 WARN [SeleniumManager.lambda$runCommand$1] - Unable to download safaridriver in offline mode
21:40:53.146 DEBUG [SeleniumManager.getDriverPath] - Using driver at location: , browser at location
21:40:53.147 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe
21:40:53.147 DEBUG [SeleniumManager.runCommand] - Executing Process: [C:\Users\rohit\AppData\Local\Temp\selenium-manager168757260992290016986365302404793685\selenium-manager.exe, --browser, Safari Technology Preview, --output, json, --debug, --offline]
21:40:53.231 DEBUG [SeleniumManager.lambda$runCommand$1] - safaritp detected at C:\Program Files
21:40:53.231 DEBUG [SeleniumManager.lambda$runCommand$1] - safaritp has not been discovered in the system
21:40:53.231 WARN [SeleniumManager.lambda$runCommand$1] - The version of safaritp cannot be detected. Trying with latest driver version
21:40:53.231 DEBUG [SeleniumManager.lambda$runCommand$1] - Required driver: safaridriver (local)
21:40:53.231 WARN [SeleniumManager.lambda$runCommand$1] - Unable to download safaridriver in offline mode
21:40:53.232 DEBUG [SeleniumManager.getDriverPath] - Using driver at location: , browser at location
Operating System
Windows 10
Selenium version
4.11.0
What are the browser(s) and version(s) where you see this issue?
edge 115.0.1901.188, firefox 116.0.1.8615, chrome 115.0.5790.170
What are the browser driver(s) and version(s) where you see this issue?
edge 115.0.1901.188, firefox 116.0.1.8615, chrome 115.0.5790.170
Are you using Selenium Grid?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 33 (18 by maintainers)
Commits related to this issue
- [grid] Detect Safari and SFT only when on macOS. Helps with #12521 — committed to SeleniumHQ/selenium by diemol 10 months ago
I’ve pushed a fix that covers the following:
--selenium-manager true
to help the user when offline mode is used.--selenium-manager true
is passed avoids combining both, which confuses.I’ve checked my code … the TOML file was created empty … don’t know why suddenly ! … but I fixed it anyway … and the TOML file registration back normally to working without adding this line … maybe there’s some kind of default value … as I was facing the error but the process was resumed correctly
eventually I’ve added the line and I can no longer see the error … Many Thanks @titusfortner
Should just be add this to your toml:
Sorry my bad, its working fine post restart. Thanks.
Yes. This did not change.
Selenium 4.12 will hopefully be out today.