Skip to content

FR: Make @WithTimeout applicable to classes #2235

Open

Description

Description

At the moment, the @WithTimeout annotation can only be applied to fields.

Often when working with widgets, having the root element ready means that the inner elements will also be ready for interaction.
@WithTimeout annotation is great for reducing the time spent searching for inner elements, but requires application for each field.
It would be nice to have the ability to apply annotations to all widget class fields at once.

Activity

  1. ghost changed the title [-]FR: Make @WithTimeout applicable to widgets[/-] [+]FR: Make @WithTimeout applicable to classes[/+] on Sep 19, 2024
  2. pujagani commented on Jul 7, 2025

    @pujagani
    Contributor

    @mykola-mokhnach Is this something I can help look into? Does it align with the project to implement something like this? I have not looked into it, but I want to understand if this is feasible or the Appium team thinks it's good to have this feature.

  3. mykola-mokhnach commented on Jul 7, 2025

    @mykola-mokhnach
    Contributor

    I personally don't really support the idea of page objects. They contain lots of implicit logic, and often are sources of unexpected behaviours. Widgets were build on top of that, which made the overall implementation even more complex and fragile. Also, the feature request itself does not seem to have high traction.
    Nevertheless feel free to work on it if the implementation is not going to be breaking.

  4. pujagani commented on Jul 8, 2025

    @pujagani
    Contributor

    Thank you so much. That gives me a better context. Will try and pick something else that can help the project better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions