ultron icon indicating copy to clipboard operation
ultron copied to clipboard

Testing screen state

Open Viacheslav-Romanov opened this issue 1 year ago • 1 comments

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.

Viacheslav-Romanov avatar Oct 01 '24 12:10 Viacheslav-Romanov

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

alex-tiurin avatar Dec 15 '24 14:12 alex-tiurin