Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing screen state #95

Open
Viacheslav-Romanov opened this issue Oct 1, 2024 · 1 comment
Open

Testing screen state #95

Viacheslav-Romanov opened this issue Oct 1, 2024 · 1 comment

Comments

@Viacheslav-Romanov
Copy link

Would be nice to have a feature to capture an entire screen state to assert it later. It can reduce a boilerplate code that you usually do to assert different elements on the screen.

  • It can be combined with the soft assertions as well. First when the screen is displayed we capture an entire tree that comprises of visible elements with all the attributes and print it to the debug log section where we can copy-paste it from into our test code.
  • Should support filtering in case we don't need to verify certain elements or their attributes.
@alex-tiurin
Copy link
Collaborator

Sounds interesting.
It looks like this ability could be implemented now as an extension of the framework.
https://open-tool.github.io/ultron/docs/common/extension#compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants