-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[🐛 Bug]: OpenQA.Selenium.NoSuchDriverException #12675
Comments
@ralfbalzer, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
There's an error starting this process. I'm assuming it doesn't like the mixing of the forward and back slashes?
What framework are you targeting? The only change I see in 4.12 is that we used to use @nvborisenko any ideas what would have changed? |
@titusfortner I am using net7.0. It#s an MVC application. |
@ralfbalzer could you please run it manually in console?
|
That works fine. Gives me the json output. |
@ralfbalzer please help us one more time:
And share entire output, thx. |
I believe it works as expected, and exit code is 0. Action items for C# binding: we need listen to error output stream from Selenium Manager and include it in raised exception. It will allow us to see what exactly was wrong with Selenium Manager. I think this issue is related to permissions, like Selenium Manager wants to write to So, Ralf, please wait next release (or patch?), it will reveal original issue. |
@ralfbalzer please try 4.12.4 and share the exception. |
@nvborisenko I did and it is still throwing the same error. |
@bonigarcia it's for you
|
I'm confused about this issue since the Selenium Manager binaries remain the same across all Selenium 4.12.*, and it seems it was working fine (since the JSON output was displayed). But then, a panic error happens (and in that case, the JSON cannot be produced). @ralfbalzer: To try to trace this problem, can you please do the following?
Also, I have prepared a new Selenium Manager binary, trying to improve the line |
@bonigarcia the output is identical in both versions: |
Thanks. That seems to indicate that Selenium Manager is working properly. |
The difference is that Selenium Manager is ran under IIS (web hosting process). Potential issue is that rust cannot determine |
@nvborisenko Just some additional information. As I mentioned, if i go back to 4.11 this all works fine. When I publish the app to my local IIS, it creates the "selenium-manager" folder as part of the publish command. However, in version 4.11 - on the live server, it also creates a folder called "chrome" In version 4.12, it does not create this folder. Maybe this helps? |
Interesting, I don't see |
@nvborisenko Sorry - I confused things here, as I keep switching between versions. In 4.12, none of the folders get created. |
@nvborisenko I just noticed sonething else. In the nuget Packages folder, I see the following: The package for 4.12, only has a lib folder for netstandard 2.0. |
No, the problem is definitely somewhere in selenium-manager.exe process. |
I am lost with this issue, but if it is caused by the problem reported here, it might be fixed with the change I made to Selenium Manager. I'm unfamiliar with .Net, but I believe we can make changes directly on the distribution. Is that right? I mean, substitute the file @ralfbalzer If possible, can you do that (in the environment in which the error happens)? And then, repeat the test which is failing. |
@bonigarcia That actually worked. I copied the downloaed file into the |
Great, thanks for checking. I have just sent a PR to fix it. |
Which version will the above PR be implemented in? I'm having the same issue as OP |
4.13 |
@bonigarcia OpenQA.Selenium.NoSuchDriverException: Unable to obtain chrome using Selenium Manager; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location ---> OpenQA.Selenium.WebDriverException: Error starting process: C:\DM_FOTA_Download_Service\Latest\selenium-manager/windows/selenium-manager.exe --browser "chrome" --output json ---> OpenQA.Selenium.WebDriverException: Selenium Manager process exited abnormally with 65 code: C:\DM_FOTA_Download_Service\Latest\selenium-manager/windows/selenium-manager.exe --browser "chrome" --output json Standard Output >> at OpenQA.Selenium.SeleniumManager.RunCommand(String fileName, String arguments) |
@nuthanbanad I don't have any context of your problem. In any case, you can try the following to get more info about it:
|
@bonigarcia I think author sometimes faces the issue, that SM expects something in one format, but gets it in some another. Most likely SM did http request to get a list of available web drivers ( If it's true, SM can just verify http response code to be 200, and fails in others cases, including http response body in error message (stacktrace). |
@nvborisenko Indeed, the error When PR #12852 is merged, Selenium Manager will use a crate called anyhow that will allow to include some context on errors. I will try to add some extra information when that error happens to clarify the cause. |
Thank @bonigarcia. I am closing this issue (for 4.12). If everybody else sees issues like "Unable to obtain chrome using Selenium Manager", please post new issue. At least selenium 4.15 will show why Selenium Manager couldn't obtain Chrome, then it would be easier to land quick fix. Thanks. |
I created PR #13291 for SM to throw a more descriptive message when JSON parsing errors from responses. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
I have updated vom Verison 4.11 to 4.12 (also tried the latest 4.12.2 version) and since the update, I am getting the following error message:
`Error: OpenQA.Selenium.NoSuchDriverException: Unable to obtain chrome using Selenium Manager; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
---> OpenQA.Selenium.WebDriverException: Error starting process: C:\inetpub\wwwroot\Gruppenhaus.Web\selenium-manager/windows/selenium-manager.exe --browser "chrome" --output json
---> OpenQA.Selenium.WebDriverException: Selenium Manager process exited abnormally with -1073740791 code: C:\inetpub\wwwroot\Gruppenhaus.Web\selenium-manager/windows/selenium-manager.exe --browser "chrome" --output json
at OpenQA.Selenium.SeleniumManager.RunCommand(String fileName, String arguments)
--- End of inner exception stack trace ---
at OpenQA.Selenium.SeleniumManager.RunCommand(String fileName, String arguments)
at OpenQA.Selenium.SeleniumManager.DriverPath(DriverOptions options)
at OpenQA.Selenium.DriverFinder.FullPath(DriverOptions options)
--- End of inner exception stack trace ---
at OpenQA.Selenium.DriverFinder.FullPath(DriverOptions options)
at OpenQA.Selenium.Chromium.ChromiumDriver.GenerateDriverServiceCommandExecutor(DriverService service, DriverOptions options, TimeSpan commandTimeout)
at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout)
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options)
`
Works finde in 4.11
How can we reproduce the issue?
Relevant log output
No logfile as in NetCore
Operating System
Windows Server
Selenium version
4.12
What are the browser(s) and version(s) where you see this issue?
Chrome
What are the browser driver(s) and version(s) where you see this issue?
should be determined by the download. 4.11 auto downloads 116.0.5845.96
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: