Skip to content

Commit ee02a4b

Browse files
committed
fix numberpad_1: use android.widget.TextView in getTextUnder
1 parent 86e937d commit ee02a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helpers/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ export async function getTextUnder(containerId: string, index: Index = 'last'):
214214
let textEls: ChainablePromiseArray;
215215

216216
if (driver.isAndroid) {
217-
// All descendants under the container containing a text attribute
218-
textEls = await container.$$('.//*[@text]');
217+
// All android.widget.TextView descendants under the container containing a text attribute
218+
textEls = await container.$$('.//android.widget.TextView[@text]');
219219
} else {
220220
// All XCUIElementTypeStaticText descendants under the container
221221
textEls = await container.$$('.//XCUIElementTypeStaticText');

0 commit comments

Comments
 (0)