I have a qml application and I need to write python tests for it. I've installed the qt webdriver for testing purposes. Everything seems to be working fine. The only problem is, I can't figure out how to find the right element in the hierarchy? When calling driver.page_source() I get xml:
?xml version="1.0" encoding="UTF-8"?>
<RootItem elementId="b7c0635eba19283067bf2c2e72e35caa">
<Loader elementId="6923326be9d0673d9c60a6be8b98f08a">
<FontStyle elementId="b5095af91197c0ec8b8b31727c76e48d"/>
</Loader>
<Loader elementId="5798d955e96a589dc7d4a69272aebfa9">
<Colors elementId="f1b7f15a0ae256d8c39e67ca726244a3"/>
</Loader>
<Rectangle elementId="fd7107762ea1ab0beb35ee6823cc7be5">
<RowLayout elementId="4e74a35d9c97bb51986d5bbc969d3c30">
<Loader elementId="c7624736838dd23bb4c0648022692776">
<ChartPanel elementId="d0b420133d8aea30f5518b9c5f5a7788">
<Button id="chartPanelButton" elementId="3a6eb70b2487eb83e7ec0b23a08fcd7f">
<Loader elementId="e878be2be43efc1f3673cd6dd37ab265"/>
<Loader elementId="15e203fc466a1da198ac064ed1759ebf">
<Item elementId="38d90692bb66c1e04ce75da3cbdcbc48">
<Loader elementId="12ece176aa92fe5e862e88fa5c6393a1">
<ControlsBackgroundRect elementId="04379d55272796d3c253dc45f7fb2050"/>
</Loader>
<Loader elementId="0532b8a87140f9a6e19b703752a0c71d">
<Item elementId="afb268de2f085a0b96128c7fa2bd3232">
<Row elementId="dcacff9b80ca001a08c6ae43536fb7f2">
............................. and a lot of other elements
How do i find the right button in my qt application? Is there any kind of inspector for this? Any help would be appreciated.