appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.15k stars 363 forks source link

feat: Add a capability to customize the default state change timeout on app startup #877

Closed mykola-mokhnach closed 4 months ago

mykola-mokhnach commented 4 months ago

Sometimes I can observe apps that take really long to start or cannot start at all because of the fact they block the main thread, so it is not idling, thus preventing XCTest from interacting with it. The default XCTest timeout for app state change is 60 seconds, although we should be able to reduce it and fail the session startup earlier if we have such app.

KazuCocoa commented 4 months ago

let me test tonight

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 8.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

mykola-mokhnach commented 4 months ago

lg. I confirmed the error case as well with 0.1 sec with apple's map app

Thanks for checking it @KazuCocoa