Skip to content
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]: Selenium Manager error #14366

Closed
freyfrey01 opened this issue Aug 9, 2024 · 4 comments
Closed

[🐛 Bug]: Selenium Manager error #14366

freyfrey01 opened this issue Aug 9, 2024 · 4 comments

Comments

@freyfrey01
Copy link

freyfrey01 commented Aug 9, 2024

What happened?

Just started receiving this error during testing (Started in the last hour). Selenium is no longer working on the machine. Related to my other Bug report. This one is far more critical as chromedriver is not working entirely.

How can we reproduce the issue?

using OpenQA.Selenium.Chrome;
namespace ChromeBotTest
{
    public class Program
    {
        private static async Task Main(string[] args)
        {
            using (ChromeDriver? chromeDriver = new()) //using statement for automatic disposal
            {
                await Task.Delay(3000); //allow chrome to open for some short time
                chromeDriver.Quit(); //quit to fully close browser and release resources
            }
        }
    }
}

Running

E:\Test\ChromeBotTest\selenium-manager\windows\selenium-manager.exe  --browser "chrome" --language-binding csharp --output json

Gives same error output



### Relevant log output

```shell
Unhandled exception. OpenQA.Selenium.WebDriverException: Error starting process: E:\Test\ChromeBotTest\selenium-manager\windows\selenium-manager.exe  --browser "chrome" --language-binding csharp --output json
 ---> OpenQA.Selenium.WebDriverException: Selenium Manager process exited abnormally with 65 code: E:\Test\ChromeBotTest\selenium-manager\windows\selenium-manager.exe  --browser "chrome" --language-binding csharp --output json
Standard Output >>
{
  "logs": [
    {
      "level": "WARN",
      "timestamp": 1723228724,
      "message": "Exception managing chrome: error sending request for url (https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json)"
    },
    {
      "level": "INFO",
      "timestamp": 1723228724,
      "message": "Driver path: E:\\Test\\ChromeBotTest\\chromedriver.exe"
    },
    {
      "level": "INFO",
      "timestamp": 1723228724,
      "message": "Browser path: C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
    }
  ],
  "result": {
    "code": 0,
    "message": "",
    "driver_path": "E:\\Test\\ChromeBotTest\\chromedriver.exe",
    "browser_path": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
  }
}

<<

   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.BinaryPaths(String arguments)
   at OpenQA.Selenium.DriverFinder.BinaryPaths()
   at OpenQA.Selenium.DriverFinder.GetDriverPath()
   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(ChromeOptions options)
   at ChromeBotTest.Program.Main(String[] args) in C:\Users\Freddy\source\repos\test\ChromeBotTest\Program.cs:line 10
   at ChromeBotTest.Program.<Main>(String[] args)

Operating System

Windows 10

Selenium version

C# 4.23.0

What are the browser(s) and version(s) where you see this issue?

Chrome 127

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver 127.0.6533.99

Are you using Selenium Grid?

No response

@freyfrey01
Copy link
Author

freyfrey01 commented Aug 9, 2024

Edge works correctly it seems

E:\Test\ChromeBotTest\selenium-manager\windows\selenium-manager.exe --browser "edge" --language-binding csharp --output json
{
"logs": [
{
"level": "INFO",
"timestamp": 1723227429,
"message": "Driver path: C:\Users\Freddy_P\.cache\selenium\msedgedriver\win64\127.0.2651.98\msedgedriver.exe"
},
{
"level": "INFO",
"timestamp": 1723227429,
"message": "Browser path: C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
}
],
"result": {
"code": 0,
"message": "",
"driver_path": "C:\Users\Freddy_P\.cache\selenium\msedgedriver\win64\127.0.2651.98\msedgedriver.exe",
"browser_path": "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
}
}

Copy link

github-actions bot commented Aug 9, 2024

@freyfrey01, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@freyfrey01
Copy link
Author

Seems to have fixed itself

Copy link

github-actions bot commented Sep 8, 2024

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant