Skip to content

Commit f54c5cb

Browse files
authored
Merge pull request #70 from synonymdev/chore/update-deps
fix numberpad_1: use android.widget.TextView in getTextUnder
2 parents 86e937d + ee02a4b commit f54c5cb

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)