uiautomator2ServerInstallTimeout:
Posted on January 16, 2020
By Sridatta Pani
Timeout in milliseconds used to wait for an uiAutomator2 server to be installed. Defaults to 20000.
Most of the appium process has some default time to complete the task. If not completed Appium terminates that task and moves on. But there are some tasks that require it to be done.
One of the required tasks is uiautomator2ServerInstall. To solve this we can set capability which will increase the timeout.
capabilities.setCapability("uiautomator2ServerInstallTimeout", 90000);
Like other capabilities, By default appium waits for 20000 ms. To make your script more stable you can use this capability.