Query the live element tree
Find elements by id, type or accessible role.
Out-of-process functional testing for Slint UIs.
with slint_testing.Application(["./my_app"]) as aut: root = aut.first_window.root_element celsius = root.query_descendants().match_id("App::celsius-input").find_first() convert = root.query_descendants().match_id("App::convert-button").find_first() fahrenheit = root.query_descendants().match_id("App::fahrenheit-input").find_first() celsius.accessible_value = "100" convert.invoke_accessible_default_action() assert fahrenheit.accessible_value == "212"
with slint_testing.Application( ["./my_app"]) as aut: root = aut.first_window.root_element celsius = (root .query_descendants() .match_id("App::celsius-input") .find_first()) convert = (root .query_descendants() .match_id("App::convert-button") .find_first()) fahrenheit = (root .query_descendants() .match_id("App::fahrenheit-input") .find_first()) celsius.accessible_value = "100" (convert .invoke_accessible_default_action()) assert (fahrenheit.accessible_value == "212")
Find elements by id, type or accessible role.
Set values, invoke accessible actions, and send events.
Check accessible values, sizes and positions, take screenshots.
Launch the app under test locally, on target hardware over SSH, or in CI.
GUI Test Framework is a commercial add‑on.