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

Cannot connect to WiniumDriver some times - reboot needed #350

Open
ernestofreyre opened this issue Dec 15, 2021 · 0 comments
Open

Cannot connect to WiniumDriver some times - reboot needed #350

ernestofreyre opened this issue Dec 15, 2021 · 0 comments

Comments

@ernestofreyre
Copy link

ernestofreyre commented Dec 15, 2021

Hello!

Please maybe somebody has experienced the following situation? I am developing a program in c#, that works fine in the main features of using Winium, i.e. I don't have any issue related to using the driver or finding elements. But, after some executions, I noticed that if I close or kill abruptly the running program (because I am still debugging it) the next executions of program falls in the problem reporting this error message:

The HTTP request to the remote WebDriver server for URL http://localhost:64904/session/AwesomeSession/elements timed out after 10 seconds.

I searched for alive Winium driver elements in Task Manager but could not find anyone, so the only solution I have for now is rebooting the machine (Windows 10). So, my question is what is causing this behavior and how can I fix it without restarting the affected PC?

This is the basic code I have:

       **var options = new DesktopOptions { ApplicationPath = ApplicationPathEXE };
        var service = WiniumDriverService.CreateDesktopService(@"Winium.Desktop.Driver");

        using (var driver = new WiniumDriver(service, options, TimeSpan.FromSeconds(10)))
       {
        var credentialsTxtBoxes = driver.FindElementsByClassName("MyClassName");   ...

       }**

I am running Winium WebDriver version 0.1.0, C#, Windows 10 64 bits.

Thanks a lot for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant