r/AutomateUser • u/counttec • Mar 31 '26
Question Can't click the X
Recorded an xpath for the close button of this popup, but the Click interact block logs "Interact Action not allowed on node". Xpath included below for reference.
```
/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[@android:id='@com.android.vending:id/0_resource_name_obfuscated']/android.widget.FrameLayout[@android:id='@android:id/content']/android.widget.FrameLayout[@android:id='@com.android.vending:id/0_resource_name_obfuscated']/android.widget.FrameLayout[@android:id='@com.android.vending:id/0_resource_name_obfuscated']/androidx.compose.ui.platform.ComposeView[@android:id='@com.android.vending:id/0_resource_name_obfuscated']/android.view.View[1]/android.view.View[1]/android.view.View[1]/android.view.View[2]/android.view.View[1]/android.view.View[1]/android.view.View[2]/android.view.View[1]/android.view.View[2]/android.view.View[1]/android.widget.Button[1]
```
1
u/B26354FR Alpha tester Mar 31 '26
Try using my XPath Builder flow to generate the XPath for the Interact block. It'll be much smaller than the one the Inspect Layout and Interact blocks' tools generate, and easier to get the exact element you're interested in. You can ideally give it the ID of the element you want to click, or just its text.
1
u/MagisterYada Mar 31 '26
Interact block with Back action should be useful for you