How can I restart WebdriverAgentRunner-Runner?

Hi everyone.

I have builds running on an iOS simulator daily. I have noticed after some days the memory usage of WebdriverAgentRunner-Runner increases, and some builds fail with org.openqa.selenium.WebDriverException: Connection refused (Connection refused).

I have the following reset capabilities on iOS:
capabilities.setCapability(MobileCapabilityType.NO_RESET, “false”);
capabilities.setCapability(MobileCapabilityType.FULL_RESET, “false”);

BeforeTest I start Appium server
BeforeClass I create the Driver
AfterTest I stop Appium server
AfterMethod I resetApp

appium version 1.22.0
Xcode 12.4
MacOS Catalina

Does anyone know how can I maybe restart the WebdriverAgentRunner programatically? Or what is that I do wrong?

Thanks in advance!

With default settings wda removes and installs.
useNewWDA by default true.

1 Like