Hello.
I have a string formatted with several attributes, I need to get all the "text" fields. In this example, I need to get "Gmail" and "Youtube" and discard everything else. Using Python
<node bounds="{0, 0, 540, 36}"
checked="false"
class="android.widget.FrameLayout"
clickable="false"
enabled="true"
id=""
index="1"
indexId="-1"
long-clickable="false"
package="com.android.systemui"
password="false"
resource-id="com.android.systemui:id/hided_by_cover_group2"
scrollable="false"
selected="false"
stringname=""
talkback=""
text=""
><node bounds="{0, 0, 540, 36}"
checked="false"
class="android.widget.FrameLayout"
clickable="false"
enabled="true"
id=""
index="2"
indexId="-1"
long-clickable="false"
package="com.android.systemui"
password="false"
resource-id="com.android.systemui:id/msim_panel_holder"
scrollable="false"
selected="false"
stringname=""
talkback="Gmail"
text="Gmail"
></node>
<node bounds="{0, 0, 540, 36}"
checked="false"
class="android.widget.FrameLayout"
clickable="false"
enabled="true"
id=""
index="1"
indexId="-1"
long-clickable="false"
package="com.android.systemui"
password="false"
resource-id="com.android.systemui:id/hided_by_cover_group2"
scrollable="false"
selected="false"
stringname=""
talkback=""
text=""
><node bounds="{0, 0, 540, 36}"
checked="false"
class="android.widget.FrameLayout"
clickable="false"
enabled="true"
id=""
index="2"
indexId="-1"
long-clickable="false"
package="com.android.systemui"
password="false"
resource-id="com.android.systemui:id/msim_panel_holder"
scrollable="false"
selected="false"
stringname=""
talkback="Youtube"
text="Youtube"
></node>
Thank you