-
-
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]: Selenium 4 WebSocket exception during performing basic authorization C# #10054
Comments
@lopukhDA, 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, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
@lopukhDA What happens if you use |
@jimevans Thanks for your suggestion, but it doesn't work. |
@lopukhDA I absolutely cannot reproduce your issue in my environment, even copying and pasting your code into a new project. The only differences are that I'm using 4.1.0 of the .NET bindings and Chrome/chromedriver 96. However, I would encourage you to at least update to 4.0.1, which did contain some refactoring of how websocket communications are handled. |
@jimevans I tried updating selenium to version 4.1 and chrome to 96 but it didn't work for me https://github.com/lopukhDA/Selenium4_WebSocket_Exception |
Can you try the same experiment using .NET 5 as the framework version to see if it’s an issue inside .NET? That’s not a solution, or even a workaround, I’m just trying to gather appropriate data. |
@jimevans Yes, you are correct, this code does work with .NET Core 5, but does not work with .NET Framework 4.7.2. |
@lopukhDA just wondering, is this still valid on 4.4.0? |
Facing similar problems with Selenium.WebDriver 4.5.1 in a .NET Framework 4.7.2 test project. Though I don't use authentication but use network interception, there is a chance that the problem has a wider scope. According to experience of me and my other colleagues (including those who experiment specifically with authentication) there are general problems with CDP WebSocket handling. Everyone who has incorporated WebDriver's |
Still broken? :( |
Supporting .NET Framework with websocket features is unfortunately a low priority for us at this point. The overall BiDi implementation for this language needs some updates, and that might fix things for 4.7, or it might might include a complete rewrite of the .NET bindings to make all the libraries Async. We'll update when we have an idea of which direction we're going with it. |
this way maybe work, it's work for me. driver.Navigate().GoToUrl("https://....com/app/my-clients/created"); driver.FindElement(By.TagName("Button")).Click(); Task.Run(async () => {
}); |
Hi @titusfortner is there any update about this issue? |
No updates. TPAC is in a few weeks and our primary lead on BiDi work will return from leave in a few weeks, so I'm expecting us to have a long conversation about where we are going soon. |
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?
Hello, currently we are under investigation of the possibility to use Selenium 4 on our project and we are faced with the next issue:
During performing the basic authorization, authorization is passing successfully but at the same time we have the next exception
There is already one outstanding 'SendAsync' call for this WebSocket instance. ReceiveAsync and SendAsync can be called simultaneously, but at most one outstanding operation for each of them is allowed at the same time.
Could you please take a look at this issue?
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
Selenium 4.0.0, .Net Framework 4.7.2 (C# 8)
What are the browser(s) and version(s) where you see this issue?
Chrome 95
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 95.0.4638.69
Are you using Selenium Grid?
no
The text was updated successfully, but these errors were encountered: