Interact→Click can’t press RTranslator left Walkie-Talkie launcher in bottom bar (screenshot attached)

37 views
Skip to first unread message

Alex

unread,
Oct 16, 2025, 9:17:03 AM (5 days ago) Oct 16
to Automate for Android

App: RTranslator (nie.translator.rtranslator), RU↔EN

Goal: From the main screen, press the left Walkie-Talkie launcher (bottom bar) to enter hands-free (mic turns ON). 

Note: Screenshot attached — target circled in red.

Also: All XPaths below were constructed from the layout captured with Automate’s Inspect User Interface feature.

What works (on the Walkie-Talkie screen itself — a different button): I can toggle the center “Automatic” mic with:

/*[@android:id='@nie.translator.rtranslator:id/centralMic']
//android.widget.ImageButton[@android:id='@nie.translator.rtranslator:id/buttonMic']

Before-press layout (bottom bar, left side) shows in dump:
@id/buttonWalkieTalkieSmall (ImageButton, not clickable in dump),
@id/buttonMicLeft (ImageButton, clickable),
@id/textButton1 (TextView “WalkieTalkie”), all under @id/constraintLayout2.

Problem: Interact→Inspect can’t find/click these on device. Tried XPaths (none return “Yes” / no click fires):

1) //* [@android:id='@nie.translator.rtranslator:id/constraintLayout2']//android.widget.ImageButton[@android:id='@nie.translator.rtranslator:id/buttonMicLeft']

2) //*[@android:id='@nie.translator.rtranslator:id/buttonMicLeft']

3) //*[@android:id='@nie.translator.rtranslator:id/constraintLayout2']//android.widget.ImageButton[@android:id='@nie.translator.rtranslator:id/buttonWalkieTalkieSmall']

4) //*[@android:id='@nie.translator.rtranslator:id/buttonWalkieTalkieSmall']

5) (//*[@android:id='@nie.translator.rtranslator:id/textButton1' and @android:text='WalkieTalkie']/ancestor-or-self::*[@android:clickable='true'][1])[1]

6) (//*[@android:id='@nie.translator.rtranslator:id/buttonMicLeft']
   | //*[@android:id='@nie.translator.rtranslator:id/buttonWalkieTalkieSmall']
   | //*[@android:id='@nie.translator.rtranslator:id/textButton1'])[1]

7) (//*[@android:id='@nie.translator.rtranslator:id/constraintLayout2']
    //*[self::android.widget.ImageButton or self::android.widget.Button][@android:clickable='true']
    [number(translate(@android:layout_x,'px','')) < 300]
    [number(translate(@android:layout_y,'px','')) > 2400])[1]

Ask: Why would these left bottom-bar nodes appear in the Inspect-captured layout yet not be targetable by Interact? Any workaround (different schema/window source/attribute) to click this left Walkie-Talkie launcher without resorting to coordinate taps? (Screenshot with target circled in red attached.)

RTranslator.jpg  

Henrik "The Developer" Lindqvist

unread,
Oct 17, 2025, 9:49:57 AM (4 days ago) Oct 17
to Automate for Android
Try using the "record interaction" button, and it's "search" feature if a click doesn't register.
Providing further help will be difficult without seeing the layout XML, i.e. the "inspect user interface" button, if it doesn't include any sensitive information then post it here.
Reply all
Reply to author
Forward
0 new messages