Appium times out when trying to start app that takes long time to start. How to extend the timeout?
See original GitHub issueThe problem
I’m testing an iOS app (on real device) that takes quit long time to start (about 80 seconds). It seems from the appium log that WebDriverAgent is trying to start the app (create a session), but times out after approx. 60 seconds. And then re-starts the app and tries again and so on.
I get this in the log:
2021-02-23 20:28:48.658 DEBUG [debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:3970/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"***********","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
2021-02-23 20:29:48.669 INFO [WD Proxy] Error: timeout of 480000ms exceeded
If you compare the timestamp you’ll see it takes approx. 60 seconds to timeout. Is it possible to extend this timeout somehow?
I have tried using the WebDriverAgent capability wdaConnectionTimeout=480000
but when set to higher than 60 seconds there seems to be something else capping it at 60 seconds. Even though the error message says timeout of 480000ms exceeded
, which is a bit confusing.
See full log here: https://gist.github.com/alexander-poulikakos/7d062a5f49d869f71be898bd22ffa592
Environment
- Node.js version (unless using Appium.app|exe): node v13.8.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
The cap at 60 seconds seems to be gone with
v1.21.0-beta.0
😃 Below times out after 65 seconds.and when using the default
wdaConnectionTimeout
I get no timeout 😃appium-base-driver@7.5.1
should be available viaappium@beta