microsoft / WinAppDriver

Windows Application Driver
MIT License
3.7k stars 1.4k forks source link

WinAppDriver crashes almost daily #1498

Open alex1yaremchuk opened 3 years ago

alex1yaremchuk commented 3 years ago

Hi, we're using WinAppDriver for more than a year now. Most of the time it works just fine. But from time to time it crashes. Recently we updated to v1.2.1 but the behavior did not change.

Our daily routine is about 4 hours of clicking.

Error happens from time to time - one or two times a week.

I added daily restarting of WinAppDriver but it does not help.

May be WinAppDriver logs its errors somewhere?

image

OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://127.0.0.1:4723/session. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.

anunay1 commented 3 years ago

Better use Appium desktop or appium command line.