Simon Hausmann
b2873a3d17
ui-testing: Add support for reading the computed opacity of elements
...
This is useful when the UI shows for example labels that appear and the screenshot for referenceing is meant to be taken when the opacity animation is complete and the value is (near) 1.0.
2024-09-19 11:28:18 +02:00
Arnold Loubriat
f01420258f
Changelog: Introduce AccessibleRole::ListItem
2024-09-16 09:15:39 +02:00
Olivier Goffart
43c7f57b0f
spawn_local: initialize the platform if not initialized before the call
...
Take the opportunity to refactor a bit the way the global platform or
context is accessed
Fixes : #5871
2024-08-21 13:26:04 +02:00
Simon Hausmann
12f5343cd8
Add the window's root element handle to the window properties
2024-08-20 15:48:00 +02:00
Simon Hausmann
69e5a8a446
System Testing: Add descendent and element id/type/role matching messages
2024-08-20 15:48:00 +02:00
Simon Hausmann
9e8fccb742
system testing: Add support for dispatching pointer and key window events
2024-07-16 14:10:22 +02:00
Simon Hausmann
a16e86bbd9
API review: Remove accidental public strum dependency
...
Deriving strum::EnumIter on a publicly exposed enum (like PointerEventButton) implies visibility into types that strum declares. This was added just for testing
in systest and can be solved differently.
Amends a1857e6154
2024-07-05 20:48:25 +02:00
Simon Hausmann
e35d05f6b9
API Review: Remove SharedImageBuffer from public API and rename Window::grab_window() to take_snapshot()
...
Use SharedPixelBuffer as return value for take_snapshot() and provide counter-parts to from_rgb* in Image as to_rgb*
2024-07-05 20:46:55 +02:00
Simon Hausmann
7f05b8aa39
Changed ElementHandle click API to a single_click and double_click function taking the button
...
That way one can also simulate double right click, for example. This is a little less convenient, more generic, but a reasonable compromise (perhaps :-)
2024-06-28 13:56:51 +02:00
Simon Hausmann
e78e68a1ba
System Testing: Add support for clicking on elements
2024-06-28 13:56:51 +02:00
Simon Hausmann
155156aab9
System testing: Add support for grabbing window contents as PNG encoded image
2024-06-27 10:25:03 +02:00
Simon Hausmann
a1857e6154
system testing: add a unit test to verify that the manual AccessibilityRole mapping is always complete
...
The enum is non-exhaustive, but we can do an additional run-time check.
2024-06-14 07:46:36 -07:00
Simon Hausmann
142b1ebde7
System Testing: Expose the accessibility role of elements
2024-06-14 07:46:36 -07:00
Simon Hausmann
a2e10f8c78
When trying to fetch an ElementHandle as part of a RPC, remove the tracked handle if it's not valid anymore
...
There's no value in keeping it.
2024-06-13 04:03:17 -07:00
Simon Hausmann
1c6aadeb30
Add support for setting the accessible value
2024-06-13 04:03:17 -07:00
Simon Hausmann
e071ba9e5b
Add a way to invoke accessibility actions
2024-06-13 04:03:17 -07:00
Simon Hausmann
97343b22db
Testing: Add the ability to locate elements by id and expose various properties
2024-06-13 04:03:17 -07:00
Simon Hausmann
4591ad8d57
Add plumbing for system testing
2024-06-13 04:03:17 -07:00