You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Unable to timeout find_elements and webdriver.Remote #855
Sometimes webdriver.Remote will hang, and it will timeout at any point.
The same goes for using find_elements, if WDA crashes/hangs, then it will never timeout.
I've tried setting appium:newCommandTimeout to 5, but it will still just hang forever.
The only thing I've found that worked, was sitting driver.command_executor.keep_alive = False and driver.command_executor.set_timeout(5).
It's quite unclear, what the best/correct way, is to set a timeout for "anything" so that it cannot just hang indefinitely.
Expected Behavior
That it would timeout after 5 seconds, and there would be a clear documented way of doing this.
Based on the default value of that, it doesn't work. I've had tests hang for hours, and the default value specifies 120s.
Most of the time, the case is that the WDA server becomes unresponsive, and Appium will just hang forever waiting for a response.
If any caps were intentionally omitted from the provided Minimal Reproducible Example for brevity, then please ignore my comment. This is a mere suggestion.
Activity
eyJhb commentedon Apr 27, 2023
@mykola-mokhnach is there a way to do this for other clients?
mykola-mokhnach commentedon Apr 27, 2023
I don't know. xcuitest driver has the
appium:commandTimeoutscapability, which might be helpful in such situationeyJhb commentedon Apr 27, 2023
Based on the default value of that, it doesn't work. I've had tests hang for hours, and the default value specifies 120s.
Most of the time, the case is that the WDA server becomes unresponsive, and Appium will just hang forever waiting for a response.
lana-20 commentedon Feb 27, 2025
@eyJhb
Suggestions:
In addition to the 5 required caps, we need 4 new caps to run tests on a real device with Appium:
xcodeOrgId,xcodeSigningId,udid, andupdatedWDABundleId.Ref: https://medium.com/@begunova/automating-real-ios-devices-with-appium-1fa729b58f51#:~:text=Test%20Setup%20for%20Real%20Devices
A couple of optional caps to try:
derivedDataPath,noReset,showXcodeLog.Ref: https://appiumpro.com/editions/77-optimizing-webdriveragent-startup-performance
Example:
If any caps were intentionally omitted from the provided Minimal Reproducible Example for brevity, then please ignore my comment. This is a mere suggestion.
fix: keep the user client config when switching to a direct connect e…
fix: keep user client config when switching to direct connect endpoint (