Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/helpers/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down