From ee02a4ba70101a1c0c42f1400fe0819a240f7b7d Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Mon, 15 Dec 2025 11:59:34 +0100 Subject: [PATCH] fix numberpad_1: use android.widget.TextView in getTextUnder --- test/helpers/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/helpers/actions.ts b/test/helpers/actions.ts index 3a23118..8395b2a 100644 --- a/test/helpers/actions.ts +++ b/test/helpers/actions.ts @@ -214,8 +214,8 @@ export async function getTextUnder(containerId: string, index: Index = 'last'): let textEls: ChainablePromiseArray; if (driver.isAndroid) { - // All descendants under the container containing a text attribute - textEls = await container.$$('.//*[@text]'); + // All android.widget.TextView descendants under the container containing a text attribute + textEls = await container.$$('.//android.widget.TextView[@text]'); } else { // All XCUIElementTypeStaticText descendants under the container textEls = await container.$$('.//XCUIElementTypeStaticText');