fix: share screen contact picker selectors (contactpicker_row_name)
This commit is contained in:
parent
dc121f71de
commit
1fd55462eb
1 changed files with 0 additions and 14 deletions
|
|
@ -171,20 +171,6 @@ async function sendMediaViaShareIntent(d, chatName, localPath, mimetype, caption
|
||||||
);
|
);
|
||||||
await d.pause(3000);
|
await d.pause(3000);
|
||||||
|
|
||||||
const searchInput = await find(
|
|
||||||
d,
|
|
||||||
uia('resourceId("com.whatsapp:id/contactpicker_search")'),
|
|
||||||
5000
|
|
||||||
);
|
|
||||||
if (!searchInput) {
|
|
||||||
throw new Error('Could not find contact picker search in share screen');
|
|
||||||
}
|
|
||||||
|
|
||||||
await searchInput.clearValue();
|
|
||||||
await d.pause(300);
|
|
||||||
await searchInput.setValue(chatName);
|
|
||||||
await d.pause(2000);
|
|
||||||
|
|
||||||
const contacts = await d.$$(
|
const contacts = await d.$$(
|
||||||
uia('resourceId("com.whatsapp:id/contactpicker_row_name")')
|
uia('resourceId("com.whatsapp:id/contactpicker_row_name")')
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue