java-client icon indicating copy to clipboard operation
java-client copied to clipboard

FR: Make @WithTimeout applicable to classes

Open wazzeps opened this issue 1 year ago • 3 comments

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.

wazzeps avatar Sep 19 '24 14:09 wazzeps

@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.

pujagani avatar Jul 07 '25 11:07 pujagani

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.

mykola-mokhnach avatar Jul 07 '25 19:07 mykola-mokhnach

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

pujagani avatar Jul 08 '25 04:07 pujagani